Error compiling php 5.3.28 using php-build

Asked

Viewed 260 times

4

I am trying to install PHP 5.3.28 using 'php-build' in Linux Mint 16 (Ubuntu) but it does not compile.

I’m using the following command:

php-build -i Development 5.3.28 ~/local/php/5.3.28

After solving several package missing errors, some error is occurring that I cannot identify.

See the full log: http://pastebin.com/x5ZxNkQd

I need to have several versions of PHP on the same machine, so I’m using php-build

How do I fix this problem?

1 answer

3


General Case

In Debian and other derived distros (Ubuntu, Mint, etc.) you can install all build dependencies of a particular software using the command

apt-get build-Dep package

Example: PHP

to install build dependencies for the , use the command:

apt-get build-Dep php5


In your case, the log shows us that the missing packages are: bison and libsqlite3 both will be installed when using the above command

  • Hello thanks for the tip, when executing the command appeared the following message: "E: You should put some 'source' Uris in your sources.list"

  • This means that your package sources do not contain entries for program sources, you should search the internet for links to the source repositories and add in your /etc/apt/sources.list

  • Thanks, I’ll try, if I can solve with this tip I mark as answer. No more thanks for the help!

  • After adding the lines "deb http://php53.dotdeb.org stable all" and "deb-src http://php53.dotdeb.org stable all" and running apt-get build-Dep php5 again. I was able to compile easily with the "php-build" tool. Thank you @Ernandes! Now I will use https://github.com/wilmoore/php-version to easily switch between versions! Answer accepted.

  • @Luizmartinsrvalho only the second line (deb-src) perhaps sufficed, however good that it worked

Browser other questions tagged

You are not signed in. Login or sign up in order to post.