Forum Moderators: coopster

Message Too Old, No Replies

Installing PHP compiler in Ubuntu and getting errors

         

anshul

10:49 pm on Dec 8, 2014 (gmt 0)

10+ Year Member



I have downloaded phc-0.3~ and trying to install it in Ubuntu 14.10.

Running make (make -i, as well) is giving so many errors, is it possible to install a PHP compiler practically?

Thanks,

eelixduppy

5:46 pm on Jan 2, 2015 (gmt 0)



Why are you trying to compile it from source? There are packages that facilitate this for popular linux distributions (e.g. apt-get). I'd look there first.

anshul

6:43 pm on Jan 2, 2015 (gmt 0)

10+ Year Member



I need to convert a long PHP program to Python.
Else I've to get a lot fluent in Python to write same PHP thing in it.

Habtom

9:35 pm on Jan 2, 2015 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think what eelix meant was how about installing php from linux distros, something like: apt-get install php5

mack

2:17 pm on Jan 4, 2015 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



In Ubuntu you have the software centre. You can search for php and have it install it for you. It's quick easy and configures properly for your system.

Mack.

anshul

9:33 pm on Jan 4, 2015 (gmt 0)

10+ Year Member



phc means a compiler, quite difficult to install it, it is not PHP.

Better way is to learn Python, if there is no easy free tool to convert PHP code to Python.