LoginSignup
2
2

More than 5 years have passed since last update.

PHPソースコンパイルインストール、prefixを指定した場合、指定しなかった場合、それぞれのインストール先

Posted at

prefixを指定した場合

$ sudo ./configure --prefix=/usr/local/php-5.5.27 --enable-fpm --enable-mbstring --with-openssl --with-mysql --with-pdo-mysql --with-mysqli --with-mcrypt
$ sudo make
$ sudo make install
Installing shared extensions:     /usr/local/php-5.5.27/lib/php/extensions/no-debug-non-zts-20121212/
Installing PHP CLI binary:        /usr/local/php-5.5.27/bin/
Installing PHP CLI man page:      /usr/local/php-5.5.27/php/man/man1/
Installing PHP FPM binary:        /usr/local/php-5.5.27/sbin/
Installing PHP FPM config:        /usr/local/php-5.5.27/etc/
Installing PHP FPM man page:      /usr/local/php-5.5.27/php/man/man8/
Installing PHP FPM status page:      /usr/local/php-5.5.27/php/php/fpm/
Installing PHP CGI binary:        /usr/local/php-5.5.27/bin/
Installing PHP CGI man page:      /usr/local/php-5.5.27/php/man/man1/
Installing build environment:     /usr/local/php-5.5.27/lib/php/build/
Installing header files:          /usr/local/php-5.5.27/include/php/
Installing helper programs:       /usr/local/php-5.5.27/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/php-5.5.27/php/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/php-5.5.27/lib/php/
[PEAR] Archive_Tar    - installed: 1.3.12
[PEAR] Console_Getopt - installed: 1.3.1
[PEAR] Structures_Graph- installed: 1.0.4
[PEAR] XML_Util       - installed: 1.2.3
[PEAR] PEAR           - installed: 1.9.5
Wrote PEAR system config file at: /usr/local/php-5.5.27/etc/pear.conf
You may want to add: /usr/local/php-5.5.27/lib/php to your php.ini include_path
/usr/local/src/php-5.5.27/build/shtool install -c ext/phar/phar.phar /usr/local/php-5.5.27/bin
ln -s -f phar.phar /usr/local/php-5.5.27/bin/phar
Installing PDO headers:          /usr/local/php-5.5.27/include/php/ext/pdo/

prefixを指定しなかった場合

$ sudo ./configure --enable-fpm --enable-mbstring --with-openssl --with-mysql --with-pdo-mysql --with-mysqli --with-mcrypt
$ sudo make
$ sudo make install
Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20121212/
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/php/man/man1/
Installing PHP FPM binary:        /usr/local/sbin/
Installing PHP FPM config:        /usr/local/etc/
Installing PHP FPM man page:      /usr/local/php/man/man8/
Installing PHP FPM status page:      /usr/local/php/php/fpm/
Installing PHP CGI binary:        /usr/local/bin/
Installing PHP CGI man page:      /usr/local/php/man/man1/
Installing build environment:     /usr/local/lib/php/build/
Installing header files:          /usr/local/include/php/
Installing helper programs:       /usr/local/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/php/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/lib/php/
[PEAR] Archive_Tar    - installed: 1.3.12
[PEAR] Console_Getopt - installed: 1.3.1
[PEAR] Structures_Graph- installed: 1.0.4
[PEAR] XML_Util       - installed: 1.2.3
[PEAR] PEAR           - installed: 1.9.5
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
/usr/local/src/php-5.5.27/build/shtool install -c ext/phar/phar.phar /usr/local/bin
ln -s -f phar.phar /usr/local/bin/phar
Installing PDO headers:          /usr/local/include/php/ext/pdo/
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2