H
H
helixly2016-06-01 18:02:44
linux
helixly, 2016-06-01 18:02:44

How to fix Invalid instruction (core dumped) error?

CentOS6
When I try to install php-mcrypt or even just do yum update I get

Загружены модули: fastestmirror, security
Подготовка к установке
Loading mirror speeds from cached hostfile
Недопустимая инструкция (core dumped)
У вас есть новая почта в /var/spool/mail/root

It started after I added the repositories
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm sudo
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

I'm honestly new to *nix. But before I put everything but the instructions and everything was fine. Please tell me what could be the problem?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
C
CityCat4, 2016-06-01
@CityCat4

Не используйте Remi Collet и снесите все, что поставили из него - они собирают нечто кривое. Для PHP используйте репозиторий webtatic

C
Curly Brace, 2015-09-13
@stasuss

Well, csv is basically text. it can be output directly to the buffer directly, just set headers before that so that the browser understands that it is being shoved with a csv file, not html

A
Alexey, 2015-09-14
@gentee

It is better to immediately send data to the user.

header('Content-Description: File Transfer');
header("Cache-Control: public");
header('Content-Disposition: attachement;filename="test.csv";');
header('Content-Type: application/csv; charset=UTF-8');
$output = fopen('php://output', 'w');
...
fputcsv( $output, $item,';' );

M
Marcuzy, 2015-09-17
@Marcuzy

$f = fopen('file.xlsx', 'r');
Yii::$app->response->sendStreamAsFile($f, 'file.xlsx', ['mimeType'=>'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question