pecl install trader ends in ERROR: `phpize' failed - installation

I'm trying to install the trader extension.
I successfully installed pear/pecl.
When first running the command "pecl install trader" I had some issues on folders that were not writable, so I manually give those read/write permissions.
Now I'm at the point I get "ERROR: `phpize' failed"
Please how to get this solved?
I run mamp server on a mac 10.6.8
computer-van-gebruiker:~ Gebruiker$ sudo pecl install trader
Password:
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
Warning: Invalid argument supplied for foreach() in PEAR/Downloader.php on line 593
Warning: Invalid argument supplied for foreach() in /usr/local/pear/share/pear/PEAR/Downloader.php on line 593
downloading trader-0.4.0.tgz ...
Starting to download trader-0.4.0.tgz (298,434 bytes)
...........................done: 298,434 bytes
Warning: Invalid argument supplied for foreach() in PEAR/PackageFile/v2/Validator.php on line 870
Warning: Invalid argument supplied for foreach() in /usr/local/pear/share/pear/PEAR/PackageFile/v2/Validator.php on line 870
332 source files, building
running: phpize
grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
ERROR: `phpize' failed

You should be more specific about PEAR/PECL and PHP version.
Your problem's source is that you're missing the development package for PHP that contains the C header files.

Related

During Openssl build: How to fix "fatal error: apps/app_rand.d: no such file or directory, compilation terminated"

I am attempting to update openssl to 1.1.1 on centos 7 in order to start building OpenLDAP.
After pulling the openssl installation package and unzipping it in /usr/local/src/ I ran ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib. This command successfully configured openssl.
I then ran the make command to build openssl and got the following error:
cc1: fatal error: apps/app_rand.d: no such file or directory
compilation terminated
make(1): *** (apps/app.rand.o) Error 1
make(1): Leaving directory '/usr/local/src/openssl-1.1.1d'
make: *** (all) Error 2
The apps directory was created and does exist, but the app_rand.d file is not present inside of the apps directory.
I have downloaded all dependencies (i believe)
I am decent in linux, I have my rhcsa, but am not familiar with manually building software libraries like openssl. I have tried to do some research online but have not come up with any solutions. Any advice would be very much appreciated!

fatal error: gnu/stubs-32.h: No such file or directory

I'm trying to build gcc 7.2.0. I get this error:
fatal error: gnu/stubs-32.h: No such file or directory
I don't have root access or sudo access on this machine so I cannot use apt. What source package can I install that will resolve this?
Try installing glibc-devel, see https://www.question-defense.com/2010/03/09/usrincludegnustubs-h727-error-gnustubs-32-h-no-such-file-or-directory and https://stackoverflow.com/a/7412698/6723250.

Magento - PHP extension intl* missing

tried this method
but says
"No releases available for package "pecl.php.net/intl" install failed"
tried with
pecl -vvv install intl
returns this
Warning: file_exists(): Unable to find the wrapper "channel" - did you
forget to enable it when you configured PHP? in
PEAR/Downloader/Package.php on line 1511
Warning: is_file(): Unable to find the wrapper "channel" - did you
forget to enable it when you configured PHP? in
PEAR/Downloader/Package.php on line 1521
Warning: is_file(): Unable to find the wrapper "channel" - did you
forget to enable it when you configured PHP? in
PEAR/Downloader/Package.php on line 1521
Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error
messages: error:14090086:SSL
routines:ssl3_get_server_certificate:certificate verify failed in
PEAR/REST.php on line 432
Warning: fsockopen(): Failed to enable crypto in PEAR/REST.php on line
432
Warning: fsockopen(): unable to connect to ssl://pecl.php.net:443
(Unknown error) in PEAR/REST.php on line 432 No releases available for
package "pecl.php.net/intl" Cannot initialize
'channel://pecl.php.net/intl', invalid or missing package file Package
"channel://pecl.php.net/intl" is not valid install
now i don't know what to do, and what this means. please help.
From PHP version 5.3 the extension intl is bundled with PHP.
So what you need to so is just enable the extension for that
open your php.ini file
find for ;extension=php_intl.dll
remove the comment ;
That’s all, restart the Magento2 installation and have fun.
Reference: http://www.magentogeek.com/magento2-intl-php-extension-missing/

Octave 3.8.0 - package installation error in Mac OS X

I am trying to install some packages in Octave however, I am getting errors. Any help will be much appreciated. I tried this from Octave home directory. (I have also tried: pkg install general-1.3.4.tar.gz)
octave:1> pkg install -forge general
In file included from /usr/local/octave/3.8.0/lib/gcc47/gcc/x86_64-apple-darwin13/4.7.3/include/stdint.h:3:0,
from /usr/local/octave/3.8.0/include/octave-3.8.0/octave/oct-conf-post.h:167,
from /usr/local/octave/3.8.0/include/octave-3.8.0/octave/config.h:3351,
from /usr/local/octave/3.8.0/include/octave-3.8.0/octave/../octave/oct.h:31,
from SHA1.cc:19:
/usr/local/octave/3.8.0/lib/gcc47/gcc/x86_64-apple-darwin13/4.7.3/include-fixed/stdint.h:27:32: fatal error: sys/_types/_int8_t.h: No such file or directory
compilation terminated.
make: *** [SHA1.oct] Error 1
/usr/local/octave/3.8.0/bin/mkoctfile-3.8.0 SHA1.cc
pkg: error running `make' for the general package.
error: called from 'configure_make' in file /usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/private/configure_make.m near line 82, column 9
error: called from:
error: /usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/private/install.m at line 199, column 5
error: /usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/pkg.m at line 394, column 9
Running the following command on a new terminal window solved it for me on the command line and gui based versions:
xcode-select --install
I have found a workaround from other sites on the web:
I was having the same issue when trying to install the Octave Signal Package without success. The following finally appears to be working.
code-select --install from the Terminal window to install the command line tools
Install MacPorts for Mac. This is a standard installer that you can download from Macports.
sudo port install gcc48 --> This is a Fortran compiler, which is necessary for installing octave-general
sudo port install octave-general [NOTE: THIS TOOK A VERY LONG TIME, and I had to disable Spotlight indexing...Hours on a Macbook Pro]
sudo port install octave-control
sudo port install octave-signal
I am having similar problems with octave 3.8.0 and Yosemite
pkg install /Users/Andrew/Downloads/odepkg-0.8.4.tar.gz
configure: error: in /var/tmp/oct-ZcfViL/odepkg/src':
configure: error: C compiler cannot create executables
Seeconfig.log' for more details
checking for gcc... /usr/local/octave/3.8.0/bin/gcc-mp-4.7
checking whether the C compiler works... no
pkg: error running the configure script for odepkg.
error: called from 'configure_make' in file /usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/private/configure_make.m near line 72, column 9
error: called from:
error: /usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/private/install.m at line 199, column 5
error: /usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/pkg.m at line 394, column 9
I have the xcode command line tools installed.

error install phpunit-skeleton generator

I have been trying to install phpunit skeleton generator. I started with
ear channel-discover pear.phpunit.de
Channel "pear.phpunit.de" is already initialised
phpunit is working and upon trying to install the skeleton generator I get the following message which I dont understand how to resolve it. I dont know where to start looking to resolve this so some pointer would be gratefully received
pear remote-list
Warning: lstat(): Lstat failed for /var/folders/jb/60nkj_096yq3kkpg_p4czs4c5cr2p_/T//pear/cache/e9b88593398eb69a9ff91042351d646arest.cacheid in PEAR/REST.php on line 276
PHP Warning: lstat(): Lstat failed for /var/folders/jb/60nkj_096yq3kkpg_p4czs4c5cr2p_/T//pear/cache/e9b88593398eb69a9ff91042351d646arest.cacheid in /usr/local/Cellar/php54/5.4.23/lib/php/PEAR/REST.php on line 276
Warning: lstat(): Lstat failed for /var/folders/jb/60nkj_096yq3kkpg_p4czs4c5cr2p_/T//pear/cache/e9b88593398eb69a9ff91042351d646arest.cacheid in /usr/local/Cellar/php54/5.4.23/lib/php/PEAR/REST.php on line 276
Could not open /var/folders/jb/60nkj_096yq3kkpg_p4czs4c5cr2p_/T//pear/cache/e9b88593398eb69a9ff91042351d646arest.cacheid for writing.
myname#mycomp:~ » pear install phpunit/PHPUnit_SkeletonGenerator 1 ↵
Warning: lstat(): Lstat failed for /var/folders/jb/60nkj_096yq3kkpg_p4czs4c5cr2p_/T//pear/cache/b116edc6554e2f3e3c908e2a309732a8rest.cacheid in PEAR/REST.php on line 276
PHP Warning: lstat(): Lstat failed for /var/folders/jb/60nkj_096yq3kkpg_p4czs4c5cr2p_/T//pear/cache/b116edc6554e2f3e3c908e2a309732a8rest.cacheid in /usr/local/Cellar/php54/5.4.23/lib/php/PEAR/REST.php on line 276
Warning: lstat(): Lstat failed for /var/folders/jb/60nkj_096yq3kkpg_p4czs4c5cr2p_/T//pear/cache/b116edc6554e2f3e3c908e2a309732a8rest.cacheid in /usr/local/Cellar/php54/5.4.23/lib/php/PEAR/REST.php on line 276
No releases available for package "pear.phpunit.de/PHPUnit_SkeletonGenerator"
install failed
It looks as though you need to prefix your pear remote-list command with sudo, and execute it as root.
$ sudo pear remote-list
You would need to do this for installing packages too. This is perfectly normal (for installing packages).

Resources