The oniguruma
package fails with the following error when trying to install mbstring
:
docker-php-ext-install mbstring
configure: error: Package requirements (oniguruma) were not met:
No package 'oniguruma' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables ONIG_CFLAGS
and ONIG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
FROM php:7.4.0beta4-apache
RUN apt-get update && apt-get install -y
libfreetype6-dev
libjpeg62-turbo-dev
libmcrypt-dev
libpng-dev
zlib1g-dev
libxml2-dev
libzip-dev
graphviz
&& docker-php-ext-configure gd
&& docker-php-ext-install -j$(nproc) gd
&& docker-php-ext-install pdo_mysql
&& docker-php-ext-install mysqli
&& docker-php-ext-install zip
# && docker-php-ext-install mbstring
&& docker-php-source delete
RUN a2enmod rewrite
RUN service apache2 restart
# Ports
EXPOSE 80
CMD ["apachectl", "-D", "FOREGROUND"]
If you are compiling php7.4 with --with-mbstring
, oniguruma is required.
Error Log
No package 'oniguruma' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables ONIG_CFLAGS
and ONIG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Solution
Install oniguruma
and oniguruma-devel
would fix it.
But they are NOT in the offical repo, you could download it from https://pkgs.org/download/oniguruma and https://pkgs.org/download/oniguruma-devel
For Ubuntu
sudo apt install libonig-dev
For Centos
yum install https://rpms.remirepo.net/enterprise/7/remi/x86_64/oniguruma5php-6.9.6-1.el7.remi.x86_64.rpm
yum install https://rpms.remirepo.net/enterprise/7/remi/x86_64/oniguruma5php-devel-6.9.6-1.el7.remi.x86_64.rpm
IF THE LINK DIED
I can’t make sure when the packages will be updated,so you can use the link here to search oniguruma5php and oniguruma5php-devel (only for centos, other distribution should use the link in Solution
field)
Replace the links in the scripts to the corresponding binary package,and please leave a message for other readers in the comment area.
Question
On Linux/Mac systems, using PHP 7.4.6 to call mb_convert_encoding
will cause a fatal error.
Error Uncaught Error: Call to undefined function mb_convert_encoding() in /develop/php/ZolAction.php:22
When compiling php-7.4.6 on Linux, run the command ./configure --prefix=/opt/php-7.4.6 --with-pdo-mysql --enable-fpm --with-curl --with-zip --enable-mbstring
, but the following error occurs.
checking for oniguruma... no
configure: error: Package requirements (oniguruma) were not met:
No package 'oniguruma' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables ONIG_CFLAGS
and ONIG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Solution
- Mac OS
brew install oniguruma
- Ubuntu/Debian
On the web page https://pkgs.org/download/libonig-dev, find the libonig-dev
version that matches your operating system, download and install it.
Or with apt-get command as follow.
sudo apt-get install libonig-dev
- RHEL/CentOS <= 7
On the web page https://pkgs.org/search/?q=oniguruma, find the oniguruma-devel
version that matches your operating system, download and install it.
Or with yum command as follow.
sudo yum install oniguruma-devel
- RHEL/CentOS 8
In Centos 8, there is no oniguruma-devel
on the official CentOS x86_64 repository, you can download oniguruma-6.8.2-0.1.el8.remi.x86_64.rpm
and oniguruma-devel-6.8.2-0.1.el8.remi.x86_64.rpm
from Remi x86_64 repository on the website https://pkgs.org/search/?q=oniguruma. Run the installation command:
$ sudo yum install ./oniguruma-6.8.2-0.1.el8.remi.x86_64.rpm
$ sudo yum install ./oniguruma-devel-6.8.2-0.1.el8.remi.x86_64.rpm
-
#1
Getting this while trying to install on CentOS 7.
checking for oniguruma… no
configure: error: Package requirements (oniguruma) were not met:
No package ‘oniguruma’ found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.Alternatively, you may set the environment variables ONIG_CFLAGS
and ONIG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.*** There was an error while trying to configure php. Check the configure file
Tried to do a manual install of oniguruma but obviously failed. Twice even!
I am beginner. What am I doing wrong?
-
#2
Code:
sudo yum install oniguruma-devel
-
#3
Code:
# yum install oniguruma-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: de.mirrors.clouvider.net
* extras: de.mirrors.clouvider.net
* remi-safe: mirror.23media.com
* updates: ftp.plusline.net
No package oniguruma-devel available.
Error: Nothing to do
-
#4
Make sure epel-release package is installed.
-
#5
Bash:
# yum install epel-release
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: de.mirrors.clouvider.net
* extras: de.mirrors.clouvider.net
* remi-safe: mirror.23media.com
* updates: ftp.plusline.net
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
remi-safe | 3.0 kB 00:00:00
updates | 2.9 kB 00:00:00
remi-safe/primary_db | 1.9 MB 00:00:00
Package epel-release-7-11.noarch already installed and latest version
Nothing to do
-
#6
Code:
yum install oniguruma-devel -- enablerepo=epel
-
#7
That did the trick! Would you mind explaining a little bit of this so that I can learn what happened?
-
#8
That did the trick! Would you mind explaining a little bit of this so that I can learn what happened?
It was simply new version of LSPHP which was different from all the previous versions (naming/structure), thus code changes to support it were needed in CustomBuild.
-
#9
So, I’m having the same issue — but the fix isn’t working:
checking for oniguruma… no
configure: error: Package requirements (oniguruma) were not met:No package ‘oniguruma’ found
# yum install oniguruma-devel — enablerepo=epel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.chpc.utah.edu
* extras: mirror.lax.genesisadaptive.com
* remi-safe: mirror. bebout.net
* updates: mirrors.oit.uci.edu
No package oniguruma-devel available.
No package enablerepo=epel available.
Error: Nothing to do
I’m relatively new and following this:
Server Guide
Any suggestions?
-
#10
@Kataflok
there have «white space» between «—» and «enablerepo» in command
should be
yum install oniguruma-devel —enablerepo=epel
-
#11
@Kataflok
there have «white space» between «—» and «enablerepo» in commandshould be
yum install oniguruma-devel —enablerepo=epel
Thanks, but that was just a typo — command was issued correctly.
Found a workaround — ran the above command before running this part of the above linked guide:
# disable Remi & EPEL by default and only enable manually when needed
yum-config-manager —disable remi epel
yum -q list jq nghttp2 redis memcached memcached-devel libmemcached-devel libmemcached —enablerepo=epel,remi
yum -y install jq nghttp2 redis memcached memcached-devel libmemcached-devel libmemcached —enablerepo=epel,remi
# mlocate
updatedb
Result: Instal successful.
Have you ever tried installing Oniguruma on POWER PC with CentOS 7? Well, I did that and it was a nightmare. I ended up with an error “configure: error: Package requirements (oniguruma) were not met. No package ‘oniguruma’ found” while configuring PHP 7.4.3. Oniguruma is a dependant package for enabling mb_string
extension for PHP. So if you need mb_string
to be enabled, then there’s no escape from installing Oniguruma.
Here’s the complete error message:
configure: error: Package requirements (oniguruma) were not met: No package 'oniguruma' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables ONIG_CFLAGS and ONIG_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
I thought, installing oniguruma and its development package would solve the issue. The yum install
libonig and libonig-devel and oniguruma said no package found. I could find some RPMs here, but those are all failed with glibc
version dependencies as shown below:
error: Failed dependencies: libc.so.6(GLIBC_2.2.5)(64bit) is needed by oniguruma-5.9.1-3.1.el6.x86_64 libc.so.6(GLIBC_2.3.4)(64bit) is needed by oniguruma-5.9.1-3.1.el6.x86_64 libc.so.6(GLIBC_2.4)(64bit) is needed by oniguruma-5.9.1-3.1.el6.x86_64
Well, I do not want to mess up with GLIB version. So I decided to compile Oniguruma from the source.
I downloaded the source from this link. I generated the configure
script by running autoconf
. But the configuration failed with
./configure: line 2341: syntax error near unexpected token `-Wno-portability' ./configure: line 2341: `AM_INIT_AUTOMAKE( -Wno-portability)'
A user in StackOverflow faced a similar error while compiling GLIBC, but later he suggested to use a different source. Well, it was a hint that the package I had downloaded might have an issue. So I decided to try another version of Oniguruma (version 5.9.6) from this link.
# ./configure --prefix=/usr/local/onig-5.9.6 --exec-prefix=/usr/local/onig-5.9.6 # make #make install
That’s it! I was able to install Oniguruma successfully. Now, I tried compiling PHP and still ended up with the same error (as shown at the top of this page).
I understand that the configure script is not able to find the references for Oniguruma properly. So I tried setting LD_LIBRARY_PATH
and ONIG_LIBS
as suggested in the error message. Oops! that didn’t work as well. So I went on to set PKG_CONFIG_PATH
environment variable as suggested.
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
# PKG_CONFIG_PATH=/usr/local/onig-5.9.6/lib/pkgconfig/
Well, that did the trick and I was able to configure PHP 7.4.3 successfully. I hope this helps someone out there.
This is the sixth day of my participation in the First Challenge 2022. For details: First Challenge 2022.
- ? blogger introduction: CSDN, Toutiao, Zhihu and other platforms quality bloggers, the whole network fans 2W +
- ? If the article is helpful to you, welcome to follow, like, bookmark (click three links) and subscribe
First, PHP environment installation process
Note: RECENTLY I am building a personal website, and the environment is useful to PHP, which is hereby recorded. This installation case is based on THE PHP8.0.0 version as an example. It is recommended to install the dependency of the third step before the installation, so that there is no need to solve the problems one by one during the installation.
1. Download the PHP package (online or compressed)
Suggestion: Create the address of the compressed package in advance to facilitate file management. The download address is www.php.net/downloads.p…
Online download (offline download to the server if the network speed is slow) : wget www.php.net/distributio…
After offline downloading, you can run the rz command to upload the file to the server: rz-be file name
2. Decompress the package
Execute the code: tar-xvf php-8.0.0.tar.gz
3. Specify the configuration information
Note: Before compiling, you need to configure the storage location of the compiled and installed files and some installed components. Before installation, you must be clear about them. If you do not know about them, you are advised to use the code in this document to avoid exceptions.
Understand the concept:
1, the source code installation needs to go through steps: configure, compile, install.
Configure, on the other hand, is an executable that configures many options./ Configure —help
The —prefix option configures the installation path of the source code, and the —with-config-file-path option configures the location of the PHP configuration file (php.ini).
3. The benefits of specifying a storage path can be compared to the software installation steps in Windows and other graphical systems. The location of the software can be specified during installation to facilitate the unified management of the subsequent software (delete, search, etc.).
Note: the following code must be on the same line, it is recommended to copy to the text to see if it is on the same line, and then copy to the server to execute (otherwise there will be a lot of puzzling problems, I believe you do not want to spend a few days to deal with).
/configure —help =./configure —help =./configure —help =./configure —help =.
./configure --prefix=/usr/local/install/php8 --with-config-file-path=/usr/local/install/php8/etc --with-curl --with-freetype --enable-gd --with-jpeg --with-gettext --with-kerberos --with-libdir=lib64 --with-libxml --with-mysqli --with-openssl --with-pdo-mysql --with-pdo-sqlite --with-pear --enable-sockets --with-mhash --with-ldap-sasl --with-xsl --with-zlib --with-zip -with-bz2 --with-iconv --enable-fpm --enable-pdo --enable-bcmath --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-xml --enable-sysvsem --enable-cli --enable-opcache --enable-intl --enable-calendar --enable-static --enable-mysqlnd
Copy the code
5. After the configuration is successful, the following message is displayed:
4. Possible exceptions and solutions during compilation
Before executing the configure script, the new server needs to integrate the existing dependency scripts. The following describes each exception:
yum install dnf
dnf install libxml2-devel
dnf install sqlite-devel
dnf -y install bzip2-devel
dnf -y install libcurl-devel
dnf -y install libpng-devel
dnf -y install libjpeg-devel
dnf -y install freetype-devel
dnf -y install libicu-devel
yum install oniguruma-devel -y
dnf -y install libxslt-devel
dnf -y install libzip-devel
Copy the code
1. Abnormal information:
Configure: error: Package requirements (libxmL-2.0 = 2.9.0) were not met: No Package 'libxmL-2.0' found. Configure: error: Package requirements (libxmL-2.0 = 2.9.0) were not met: No Package 'libxmL-2.0' foundCopy the code
DNF install libxml2-devel
2. Abnormal information:
-bash: dnf: command not found
Copy the code
Yum install DNF
3. Abnormal information:
Configure: error: Package requirements (SQlite3 3.7.4) were not met: No Package 'sqlite3' foundCopy the code
DNF install sqlite-devel
4. Abnormal information:
checking for BZip2 in default path... not found
configure: error: Please reinstall the BZip2 distribution
Copy the code
DNF -y install bzip2-devel
5. Abnormal information:
Configure: error: Package requirements (libcurl = 7.29.0) were not met: No Package 'libcurl' foundCopy the code
DNF -y install libcurl-devel
6. Abnormal Information:
configure: error: Package requirements (libpng) were not met:
No package 'libpng' found
Copy the code
DNF -y install libpng-devel
7. Abnormal information:
configure: error: Package requirements (libjpeg) were not met:
Package 'libjpeg', required by 'virtual:world', not found
Copy the code
DNF -y install libjpeg-devel
8. Abnormal Information:
configure: error: Package requirements (freetype2) were not met:
Package 'freetype2', required by 'virtual:world', not found
Copy the code
DNF -y install freetype-devel
9. Abnormal information:
Configure: error: Package requirements (ICU-UC = 50.1 ICU-IO ICU-i18n) were not met: Package 'icu-uc', required by 'virtual:world', not found Package 'icu-io', required by 'virtual:world', not found Package 'icu-i18n', required by 'virtual:world', not foundCopy the code
DNF -y install libicu-devel
10. Abnormal Information:
configure: error: Package requirements (oniguruma) were not met:
No package 'oniguruma' found
Copy the code
Yum install oniguruma-devel-y
11. Abnormal Information:
Configure: error: Package requirements (libxslt = 1.1.0) were not met: No Package 'libxslt' foundCopy the code
DNF -y install libxslt-devel
12. Abnormal Information:
Configure: error: Package requirements (libzip = 0.11 libzip! = 1.3.1 libzip! Were not met: Package 'libzip', required by 'virtual:world', not foundCopy the code
DNF -y install libzip-devel
13. Abnormal Information:
Configure: error: Package requirements (libzip = 0.11 libzip! = 1.3.1 libzip! Requested 'libzip = 0.11' but version of libzip is 0.10.1Copy the code
Solution:
Yum remove libzip-devel libzip yum remove libzip-devel libzip
2, online download the corresponding version: wget libzip.org/download/li… —no-check-certificate
4. Go to the decompressed folder and run the configuration script./confugure
5, compile and install: make make install
6, installation is complete, the query/usr/local/lib directory pkgconfig directory, any execute commands export PKG_CONFIG_PATH = «/ usr/local/lib/pkgconfig/» to specify PKG_CONFIG_PATH, Then re-execute the decompressed PHP folder and execute the./configure script
5. Compile and install
After configuration, execute make to compile the source code, execute make install to install the source code, or execute both at the same time (note: both compile and install are executed in the decompressed PHP folder — that is, the directory where the configure script exists):
1. Compile: make
2, Install: make install
Cc: Internal compiler error: Killed (Program CC1)
Cause: There is a high probability that the memory is insufficient. You can use swap partition to solve the problem first, and then delete it after compiling and installing.
Solution:
sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile
Copy the code
Cancel swap partition:
sudo swapoff /swapfile
sudo rm /swapfile
Copy the code
6. Check the PHP installation
Go to the bin directory of the installation path specified by configure and check the version:
/usr/local/install/php8/bin/php --version
Copy the code
Execution Result:
2. Manage various configuration files
1, generate the php.ini configuration file (in the PHP source package directory) :
cp php.ini-production /usr/local/install/php8/etc/php.ini
Copy the code
Create WWW configuration file:
cd /usr/local/install/php8/etc/php-fpm.d/
cp www.conf.default www.conf
Copy the code
3, generate phP-fPM configuration file:
cd /usr/local/install/php8/etc/
cp php-fpm.conf.default php-fpm.conf
Copy the code
4, generate phP-fPM executable:
- create storage configuration file directory mkdir/usr/local/install/php8 / FPM - a copy of FPM executable scripts from source cp/usr/local/PHP - 8.0.0 / PHP/sapi/FPM/init. D.p HP - FPM / usr/local/install/php8 / FPM/PHP - FPM - PHP - FPM modify chmod 740 for an executable file/usr/local/install/php8 / FPM/PHP - FPMCopy the code
Manage PHP
Php-fpm (FastCGI Process Manager: FastCGI Process Manager) is a PHPFastCGI Manager designed to integrate FastCGI Process management into THE PHP package.
Advantages: PhP-FPM has more CPU and memory control than Spawn FCGI, and it crashes easily and has to be monitored with crontab instead of phP-FPM.
1. Start php-fpm:
/usr/local/install/php8/fpm/php-fpm start
Copy the code
2. Check whether the php-fpm process is started successfully
ps aux | grep php | grep -v grep
Copy the code
3. Check the port occupied by pfP-FPM
ss -lntp | grep php
Copy the code
4. Run PHP —version. PHP command not found
1. Modify the configuration file
vim /etc/profile
// add the PHP environment variable to the bin directory specified by the configure script.
PATH=$PATH:/usr/local/install/php8/bin
export PATH
// Refresh the configuration file
source /etc/profile
Copy the code
You’re done
Write in the last
If you feel the article is helpful, please give the blogger a thumbs-up, favorites, follow. The following bloggers will bring more quality and quality articles.
If you want to learn more and learn more about open source projects, please click below to add a blogger and enter the technical circle (all resources are free, but you are required to have long-term interest in the circle, if it is just an impulse, it is not recommended to join, after all, the quota is limited).
Join the technical circle, in addition to free guidance for building problems, but also the first time to receive the latest industry consultation and know the professional leaders!
Содержание
- configure: error: freetype-config not found
- Compiling php-7.3.21 from source
- Solution
- Debian User Forums
- Error in ./configure (SOLVED)
- Error in ./configure (SOLVED)
- How to solve `configure: error: Cannot find OpenSSL’s `?
- 10 Answers 10
- DEBIAN os Stretch configure: error: #925
- Comments
- Output
- Expected Result
- Command
- Build Log
configure: error: freetype-config not found
by frank · November 14, 2020
Compiling php-7.3.21 from source
checking for the location of libwebp. no
checking for the location of libjpeg. yes
checking for the location of libpng. yes
checking for the location of libXpm. no
checking for FreeType 2. yes
checking whether to enable JIS-mapped Japanese font support in GD. no
If configure fails try —with-webp-dir=
checking for jpeg_read_header in -ljpeg. yes
checking for png_write_image in -lpng. yes
If configure fails try —with-xpm-dir=
configure: error: freetype-config not found.
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target ‘install’. Stop.
ln: failed to create symbolic link ‘/usr/local/php-7.3.21/sbin/php-7.3.21-fpm’: No such file or directory
Solution
Install PHP 7.4.X instead (such as 7.4.12 at the time of writing), which uses pkg-config instead and goes around that error.
But then you might run into
configure: error: re2c 0.13.4 is required to generate PHP lexers.
Which can be fixed with
apt-get install re2c
Then you might run into
checking for sqlite3 > 3.7.4. no
configure: error: Package requirements (sqlite3 > 3.7.4) were not met:
No package ‘sqlite3’ found
apt-get install libsqlite3-dev sqlite3
Then you might run into
checking for oniguruma. no
configure: error: Package requirements (oniguruma) were not met:
No package ‘oniguruma’ found
apt-get install libonig-dev
Источник
Debian User Forums
Error in ./configure (SOLVED)
Error in ./configure (SOLVED)
#1 Post by garrincha » 2007-01-14 15:15
I checked ‘config.log’ but it wasn’t helpful. To be sure, I tried to build a different package and I got the same error as above.
#2 Post by mzilikazi » 2007-01-14 16:02
#3 Post by garrincha » 2007-01-14 19:05
When I typed ‘which gcc’, no output is returned, so presumedly there is no sym link to the gcc compiler supposedly installed in my system.
This is not the first time that it has happened. I tried to build a package about two weeks ago and I got the same error.
Edit: I checked the /usr/bin/ directory and gcc-4.1 is definitely there.
#4 Post by mzilikazi » 2007-01-14 23:53
#5 Post by garrincha » 2007-01-15 13:06
#6 Post by mzilikazi » 2007-01-15 13:53
#7 Post by garrincha » 2007-01-15 15:37
Yes, this is the same thing. I would have apt-get install it instead however I’m trying to test the compile and build features on my etch installation as I would like to build a kernel later on. Incidentally, I downloaded another tarball kde theme and I tried to run ./configure and I got the same error output as the one for above.
#8 Post by mzilikazi » 2007-01-15 16:04
Well I may be the last person you should ask about anything KDE.
You’d have much better luck with a KDE specific forum/mailing list/chat room. Of course, if you find a resolution to your problem it would be great for you to post it so others could read it too.
Last guess — Do you have these installed?
#9 Post by garrincha » 2007-01-15 17:02
I checked, apparently I did not have these installed, so I installed these packages for the etch version in my installation. Unfortunately, it didn’t do the trick.
It is not necessarily a KDE-specific problem. As I mentioned I tried to configure and make a tarball about 2 weeks ago and I got the same error as the one I printed at the top of this trend. I just downloaded the tarball fluxbox-1.0rc2.tar.bz2 and run ./configure and I got the same error.
#10 Post by plugwash » 2007-01-15 21:08
When I typed ‘which gcc’, no output is returned, so presumedly there is no sym link to the gcc compiler supposedly installed in my system.
This is not the first time that it has happened. I tried to build a package about two weeks ago and I got the same error.
Edit: I checked the /usr/bin/ directory and gcc-4.1 is definitely there.
it looks like you have installed the compiler but not the packages that create the symlinks to the current default compiler.
there should be a package simply named gcc, you need to install it
you might also wan’t to install build-essential as there are likely to be other things that are important for building stuff that you don’t currently have installed.
Источник
How to solve `configure: error: Cannot find OpenSSL’s `?
Im trying to recompile PHP, but ./configure fails at :
I have LibSSL 1.0.0, LibSSL 0.9.8, LibSSL-Dev, OpenSSL installed.
when I try with
configure: error: Cannot find OpenSSL’s libraries
Where the **** are the problem ?
P.S. Php is 5.2.5, OS is Ubuntu
10 Answers 10
The same issue occurred on Ubuntu 12.04.1 LTS and it was solved by issuing:
sudo apt-get install libcurl4-openssl-dev pkg-config
To build php-5.3 on Debian wheezy you need the following to fix this error.
Then you need to configure with the following included
Assuming that you already have the OpenSSL libraries and header files (on rpm systems the latter are in the xxxx-devel package).
The issue seems to arise from how configure resolves dependencies which are distributed around the filesystem. To compile the code, the comiler needs to know where the headers are. To link the code, the linker needs to know where the libraries are.
The include directory has the include file, but pkg-config fails because the library is not in /usr/include/openssl, its in /usr/lib
Running configure again with /usr as the directory:
The path passed as an argument is searched to find the relevant resources.
Источник
DEBIAN os Stretch configure: error: #925
Output
Error: Configure failed:
The last 5 lines in the log file:
checking whether to enable ctype functions. yes
checking for cURL support. yes
checking for cURL in default path. not found
configure: error: Please reinstall the libcurl distribution —
Please checkout the build log file for more details:
tail /home/welington/.phpbrew/build/php-5.6.31/build.log
Expected Result
the installation of the later versions to 7 I can install normal everything perfect.
But the installation of the 5th version I can not
Command
phpbrew install 5.6.31 +default
Build Log
configure: creating cache /home/welington/.phpbrew/cache/config.cache
./configure: line 3188: /home/welington/.phpbrew/cache/config.cache: No such file or directory
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 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 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 how to run the C preprocessor. cc -E
checking for ANSI C header files. yes
checking for sys/types.h. yes
checking for sys/stat.h. yes
checking for stdlib.h. yes
checking for string.h. yes
checking for memory.h. yes
checking for strings.h. yes
checking for inttypes.h. yes
checking for stdint.h. yes
checking for unistd.h. yes
checking minix/config.h usability. no
checking minix/config.h presence. no
checking for minix/config.h. no
checking whether it is safe to define EXTENSIONS. yes
checking whether ln -s works. yes
checking for system library directory. lib/x86_64-linux-gnu
checking whether to enable runpaths. yes
checking if compiler supports -R. no
checking if compiler supports -Wl,-rpath. yes
checking for gawk. gawk
checking for bison. no
checking for byacc. no
checking for bison version. invalid
configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: none, min: 204, excluded: 3.0).
checking for re2c. no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking whether to enable computed goto gcc extension with re2c. no
checking whether to force non-PIC code in shared modules. no
checking whether /dev/urandom exists. yes
checking for pthreads_cflags. -pthread
checking for pthreads_lib.
�[1mConfiguring SAPI modules�[m
checking for AOLserver support. no
checking for Apache 1.x module support via DSO through APXS. no
checking for Apache 1.x module support. no
checking whether to enable Apache charset compatibility option. no
checking for Apache 2.0 filter-module support via DSO through APXS. no
checking for Apache 2.0 handler-module support via DSO through APXS. no
checking for Apache 1.x (hooks) module support via DSO through APXS. no
checking for Apache 1.x (hooks) module support. no
checking whether to enable Apache charset compatibility option. no
checking for Caudium support. no
checking for setproctitle. no
checking sys/pstat.h usability. no
checking sys/pstat.h presence. no
checking for sys/pstat.h. no
checking for PS_STRINGS. no
checking for CLI build. yes
checking for Continuity support. no
checking for embedded SAPI library support. no
checking for FPM build. no
checking for Zeus ISAPI support. no
checking for LiteSpeed support. no
checking for Milter support. no
checking for NSAPI support. no
checking for phpdbg support. no
checking for phpdbg debug build. no
checking for PHTTPD support. no
checking for Pi3Web support. no
checking whether Roxen module is build using ZTS. no
checking for Roxen/Pike support.
checking for thttpd. no
checking for TUX. no
checking for webjames. no
checking for CGI build. yes
checking for socklen_t in sys/socket.h. yes
checking for sun_len in sys/un.h. no
checking whether cross-process locking is required by accept(). no
checking for chosen SAPI module. none
checking for executable SAPI binaries. cli cgi
�[1mRunning system checks�[m
checking for sendmail. no
checking whether system uses EBCDIC. no
checking whether byte ordering is bigendian. no
checking whether writing to stdout works. This is the test message — yes
checking for socket. yes
checking for socketpair. yes
checking for htonl. yes
checking for gethostname. yes
checking for gethostbyaddr. yes
checking for yp_get_default_domain. no
checking for __yp_get_default_domain. no
checking for yp_get_default_domain in -lnsl. yes
checking for dlopen. no
checking for __dlopen. no
checking for dlopen in -ldl. yes
checking for sin in -lm. yes
checking for inet_aton. yes
checking for ANSI C header files. (cached) yes
checking for dirent.h that defines DIR. yes
checking for library containing opendir. none required
checking for inttypes.h. (cached) yes
checking for stdint.h. (cached) yes
checking for dirent.h. yes
checking for ApplicationServices/ApplicationServices.h. no
checking for sys/param.h. yes
checking for sys/types.h. (cached) yes
checking for sys/time.h. yes
checking for netinet/in.h. yes
checking for alloca.h. yes
checking for arpa/inet.h. yes
checking for arpa/nameser.h. yes
checking for assert.h. yes
checking for crypt.h. yes
checking for dns.h. no
checking for fcntl.h. yes
checking for grp.h. yes
checking for ieeefp.h. no
checking for langinfo.h. yes
checking for limits.h. yes
checking for locale.h. yes
checking for monetary.h. yes
checking for netdb.h. yes
checking for pwd.h. yes
checking for resolv.h. yes
checking for signal.h. yes
checking for stdarg.h. yes
checking for stdlib.h. (cached) yes
checking for string.h. (cached) yes
checking for syslog.h. yes
checking for sysexits.h. yes
checking for sys/ioctl.h. yes
checking for sys/file.h. yes
checking for sys/mman.h. yes
checking for sys/mount.h. yes
checking for sys/poll.h. yes
checking for sys/resource.h. yes
checking for sys/select.h. yes
checking for sys/socket.h. yes
checking for sys/stat.h. (cached) yes
checking for sys/statfs.h. yes
checking for sys/statvfs.h. yes
checking for sys/vfs.h. yes
checking for sys/sysexits.h. no
checking for sys/varargs.h. no
checking for sys/wait.h. yes
checking for sys/loadavg.h. no
checking for termios.h. yes
checking for unistd.h. (cached) yes
checking for unix.h. no
checking for utime.h. yes
checking for sys/utsname.h. yes
checking for sys/ipc.h. yes
checking for dlfcn.h. yes
checking for assert.h. (cached) yes
checking for fopencookie. yes
checking for broken getcwd. no
checking for broken libc stdio. yes
checking whether struct tm is in sys/time.h or time.h. time.h
checking for struct tm.tm_zone. yes
checking for missing declarations of reentrant functions. done
checking for fclose declaration. ok
checking for tm_gmtoff in struct tm. yes
checking for struct flock. yes
checking for socklen_t. yes
checking size of size_t. 8
checking size of long long. 8
checking size of long long int. 8
checking size of long. 8
checking size of int. 4
checking size of intmax_t. 8
checking size of ssize_t. 8
checking size of ptrdiff_t. 8
checking size of short. 2
checking size of int. (cached) 4
checking size of long. (cached) 8
checking size of long long. (cached) 8
checking for int8. no
checking for int16. no
checking for int32. no
checking for int64. no
checking for int8_t. yes
checking for int16_t. yes
checking for int32_t. yes
checking for int64_t. yes
checking for uint8. no
checking for uint16. no
checking for uint32. no
checking for uint64. no
checking for uint8_t. yes
checking for uint16_t. yes
checking for uint32_t. yes
checking for uint64_t. yes
checking for u_int8_t. yes
checking for u_int16_t. yes
checking for u_int32_t. yes
checking for u_int64_t. yes
checking for struct stat.st_blksize. yes
checking for struct stat.st_blocks. yes
checking for struct stat.st_rdev. yes
checking for size_t. yes
checking for uid_t in sys/types.h. yes
checking for struct sockaddr_storage. yes
checking for field sa_len in struct sockaddr. no
checking for IPv6 support. yes
checking for vprintf. yes
checking for _doprnt. no
checking for alphasort. yes
checking for asctime_r. yes
checking for chroot. yes
checking for ctime_r. yes
checking for cuserid. yes
checking for crypt. no
checking for flock. yes
checking for ftok. yes
checking for funopen. no
checking for gai_strerror. yes
checking for gcvt. yes
checking for getloadavg. yes
checking for getlogin. yes
checking for getprotobyname. yes
checking for getprotobynumber. yes
checking for getservbyname. yes
checking for getservbyport. yes
checking for gethostname. (cached) yes
checking for getrusage. yes
checking for gettimeofday. yes
checking for gmtime_r. yes
checking for getpwnam_r. yes
checking for getgrnam_r. yes
checking for getpwuid_r. yes
checking for grantpt. yes
checking for inet_ntoa. yes
checking for inet_ntop. yes
checking for inet_pton. yes
checking for isascii. yes
checking for link. yes
checking for localtime_r. yes
checking for lockf. yes
checking for lchown. yes
checking for lrand48. yes
checking for memcpy. yes
checking for memmove. yes
checking for mkstemp. yes
checking for mmap. yes
checking for nl_langinfo. yes
checking for perror. yes
checking for poll. yes
checking for ptsname. yes
checking for putenv. yes
checking for realpath. yes
checking for random. yes
checking for rand_r. yes
checking for scandir. yes
checking for setitimer. yes
checking for setlocale. yes
checking for localeconv. yes
checking for setenv. yes
checking for setpgid. yes
checking for setsockopt. yes
checking for setvbuf. yes
checking for shutdown. yes
checking for sin. yes
checking for snprintf. yes
checking for srand48. yes
checking for srandom. yes
checking for statfs. yes
checking for statvfs. yes
checking for std_syslog. no
checking for strcasecmp. yes
checking for strcoll. yes
checking for strdup. yes
checking for strerror. yes
checking for strftime. yes
checking for strnlen. yes
checking for strptime. yes
checking for strstr. yes
checking for strtok_r. yes
checking for symlink. yes
checking for tempnam. yes
checking for tzset. yes
checking for unlockpt. yes
checking for unsetenv. yes
checking for usleep. yes
checking for utime. yes
checking for vsnprintf. yes
checking for vasprintf. yes
checking for asprintf. yes
checking for nanosleep. yes
checking for nanosleep in -lrt. yes
checking for getaddrinfo. yes
checking for __sync_fetch_and_add. yes
checking for strlcat. no
checking for strlcpy. no
checking for getopt. yes
checking for utime.h. (cached) yes
checking whether utime accepts a null argument. yes
checking for working alloca.h. yes
checking for alloca. yes
checking for declared timezone. yes
checking for type of reentrant time-related functions. POSIX
checking for readdir_r. yes
checking for type of readdir_r. POSIX
checking for in_addr_t. yes
checking for crypt_r. no
�[1mGeneral settings�[m
checking whether to include gcov symbols. no
checking whether to include debugging symbols. no
checking layout of installed files. PHP
checking path to configuration file. /home/welington/.phpbrew/php/php-5.6.31/etc
checking where to scan for configuration files. /home/welington/.phpbrew/php/php-5.6.31/var/db
checking whether to enable PHP’s own SIGCHLD handler. no
checking whether to explicitly link against libgcc. no
checking whether to enable short tags by default. yes
checking whether to enable dmalloc. no
checking whether to enable IPv6 support. yes
checking whether to enable DTrace support. no
checking how big to make fd sets. using system default
Источник