Skip to main content

Install php7-devel

Comments

13 comments

  • cPanelMichael
    Hello @bloom360, Can you first verify which extension you are attempting to install, and the command(s) you are using to install it? Thank you.
    0
  • bloom360
    Hi @cPanelMichael It's a rather niche extension, surely nothing that you would have heard of. But in any case, here it is... I first downloaded it from Github, then patched it and then tried to phpize and install: [root@vulcan sweph]# git clone https://github.com/Britskiy/php-sweph.git Cloning into 'php-sweph'... remote: Counting objects: 26, done. remote: Total 26 (delta 0), reused 0 (delta 0), pack-reused 26 Unpacking objects: 100% (26/26), done. [root@vulcan sweph]# cd php-sweph [root@vulcan php-sweph]# patch -p1 < ../sweph-php7/sweph-php7.diff patching file sweph.c [root@vulcan php-sweph]# /opt/cpanel/ea-php71/root/usr/bin/phpize && ./configure
    ... and got: Configuring for: PHP Api Version: 20160303 Zend Module Api No: 20160303 Zend Extension Api No: 320160303 checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for PHP prefix... /opt/cpanel/ea-php71/root/usr checking for PHP includes... -I/opt/cpanel/ea-php71/root/usr/include/php -I/opt/ cpanel/ea-php71/root/usr/include/php/main -I/opt/cpanel/ea-php71/root/usr/includ e/php/TSRM -I/opt/cpanel/ea-php71/root/usr/include/php/Zend -I/opt/cpanel/ea-php 71/root/usr/include/php/ext -I/opt/cpanel/ea-php71/root/usr/include/php/ext/date /lib checking for PHP extension directory... /opt/cpanel/ea-php71/root/usr/lib64/php/ modules checking for PHP installed headers prefix... /opt/cpanel/ea-php71/root/usr/inclu de/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... no configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk... gawk checking whether to enable sweph support... yes, shared checking for sweph files in default path... not found configure: error: Please reinstall the sweph distribution
    0
  • sktest123
    the re2c is an independent package and could be installed with the steps at stackoverflow.com/questions/48220083/how-to-install-re2c-on-linux-centos-7 or blog.csdn.net/jacson_bai/article/details/43604281 WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers - CSDN?? (just translate) the "sweph files not found " needs to dealt with wrong path directory , review code.google.com/archive/p/php-sweph/issues/3 Google Code Archive - Long-term storage for Google Code Project Hosting
    0
  • bloom360
    Thank you so much, this solved my problem. Much appreciated.
    0
  • cPanelMichael
    Hello, I'm glad to see that post helped. I've marked this thread as solved. Thank you.
    0
  • vaibhav shukla
    I am trying to install the same extension php-sweph.Running php version 5.6 under centos 7.5 kvm. As mentioned in the installation i wanted to follow these steps: git clone github.com/cyjoelchen/php-sweph.git cd php-sweph phpize ./configure make sudo make install
    I followed equivalent steps on centos7.5.Below is what i got. [root@216-10-242-59 ~]# git clone github.com/cyjoelchen/php-sweph.git fatal: destination path 'php-sweph' already exists and is not an empty directory. [root@216-10-242-59 ~]# cd php-sweph [root@216-10-242-59 php-sweph]# /opt/cpanel/ea-php56/root/usr/bin/phpize && ./configure Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226 checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu configure: error: Cannot find php-config. Please use --with-php-config=PATH Next steps are to run make files generated in the configuration and yum make install.But configuration command is not working and make and install commands not working. [root@216-10-242-59 php-sweph]# make make: *** No targets specified and no makefile found. Stop.
    Need some help regarding this problem. Thank you.
    0
  • cPanelMichael
    # /opt/cpanel/ea-php56/root/usr/bin/phpize && ./configure

    Hello @vaibhav shukla, The installation of this PHP package is unsupported. However, as far as the above command itself goes, you'd want to use something like this instead: /opt/cpanel/ea-php56/root/usr/bin/phpize && ./configure --with-php-config=/opt/cpanel/ea-php56/root/usr/bin/php-config
    Thank you.
    0
  • vaibhav shukla
    I am facing php error due to incomplete installation of this package php-sweph.Don't know how to solve it. The error is: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/sweph.so' - /opt/cpanel/ea-php56/root/usr/lib64/php/modules/sweph.so: cannot open shared object file: No such file or directory First I need to solve this error and I no more require this php package.I want to remove it. How to remove the error and the php package?
    0
  • cPanelMichael
    PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/sweph.so' - /opt/cpanel/ea-php56/root/usr/lib64/php/modules/sweph.so: cannot open shared object file: No such file or directory First I need to solve this error and I no more require this php package.I want to remove it. How to remove the error and the php package?

    Did you add an entry for it in the /opt/cpanel/ea-php56/root/etc/php.ini file? If so, remove the entry, save the file, and then restart Apache. Thank you.
    0
  • vaibhav shukla
    I had added entry in php.ini file.I want to remove the entry.But I searched for the line extension=sweph.so in all php.ini,i am unable to find it.I came across six-seven php.ini files.I checked them all but didn't find either.I searched text 'extension=sweph.so' using grep command.I am not getting the text 'extension=sweph.so' in ant php.ini file.What can be done in this scenario? Thank you.
    0
  • cPanelMichael
    Hello @vaibhav shukla, You may also want to try running the following command in-case you created a separate .ini file for it: grep sweph /opt/cpanel/ea-php56/root/etc/php.d/*
    Thank you.
    0
  • vaibhav shukla
    I followed what you said.It was there within separate ini file.I removed that line and also deleted that ini file.Now the error has gone. Glad to see that the problem is solved. Thank you.
    0
  • cPanelMichael
    Hello @vaibhav shukla, I'm glad to see that helped. Thanks for sharing the outcome.
    0

Please sign in to leave a comment.