Re: [PHP] Problem compiling PHP 4.4.2 with mcrypt
Tom Ray [Lists] wrote: I have to get a temporary server in place under a tight time frame and am using a pre-existing server that wasn't configured really for hosting websites. I've upgraded all the services on it like going from Apache 1.3.x to Apache 2.0.59 and PHP from it's old version to 4.4.2 however I need to have mcrypt compiled with PHP and I'm running into a problem. If I compile PHP without mcrypt I can install PHP without issue. However, when I try to compile PHP with --with-mcrypt=/usr/local/mcrypt I get the following error: main/internal_functions.lo -lcrypt -lcrypt -lmcrypt -lltdl -lresolv -lm -ldl -lnsl -lcrypt -lcrypt -o libphp4.la /usr/lib/gcc-lib/i486-suse-linux/3.2/../../../../i486-suse-linux/bin/ld: cannot find -lltdl collect2: ld returned 1 exit status make: *** [libphp4.la] Error 1 Now I went back and compiled without mcrypt and looked for that line and this is what was there: main/internal_functions.lo -lcrypt -lcrypt -lresolv -lm -ldl -lnsl -lcrypt -lcrypt -o libphp4.la I see that along with -lmcrypt not being there neither is -lltdl is there something I'm missing? Do I need to have something else installed on the box? Normally I haven't had this problem with this. But this is an old suse 8.x box that is being used due to time frame issues. Like I said I can compile PHP without mcrypt, but the project requires mcrypt so any help on this would be appreciated. Looks like mcrypt has an extra dependency. Do you have the mcrypt-dev or mcrypt-devel package installed (whatever suse calls it) ? When I just went to install mcrypt on my debian machine it added "libltdl3" to the list of packages it needed. Do you have that one installed? How come you're compiling and not installing the package(s) ? Is suse too old to be able to install 4.4.2? Last question :P how come you're installing 4.4.2 and not the latest - 4.4.4 ? -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem compiling PHP 4.4.2 with mcrypt
I have to get a temporary server in place under a tight time frame and am using a pre-existing server that wasn't configured really for hosting websites. I've upgraded all the services on it like going from Apache 1.3.x to Apache 2.0.59 and PHP from it's old version to 4.4.2 however I need to have mcrypt compiled with PHP and I'm running into a problem. If I compile PHP without mcrypt I can install PHP without issue. However, when I try to compile PHP with --with-mcrypt=/usr/local/mcrypt I get the following error: main/internal_functions.lo -lcrypt -lcrypt -lmcrypt -lltdl -lresolv -lm -ldl -lnsl -lcrypt -lcrypt -o libphp4.la /usr/lib/gcc-lib/i486-suse-linux/3.2/../../../../i486-suse-linux/bin/ld: cannot find -lltdl collect2: ld returned 1 exit status make: *** [libphp4.la] Error 1 Now I went back and compiled without mcrypt and looked for that line and this is what was there: main/internal_functions.lo -lcrypt -lcrypt -lresolv -lm -ldl -lnsl -lcrypt -lcrypt -o libphp4.la I see that along with -lmcrypt not being there neither is -lltdl is there something I'm missing? Do I need to have something else installed on the box? Normally I haven't had this problem with this. But this is an old suse 8.x box that is being used due to time frame issues. Like I said I can compile PHP without mcrypt, but the project requires mcrypt so any help on this would be appreciated. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] problem compiling php
i would always make sure you check the manuals for the information first... http://www.php.net/manual/en/install.apache.php On Fri, 2002-11-08 at 16:52, dk1eng wrote: > hi there again, > here's the problem: > I compiled apache using --enable-modules=so > What do i need to do now in order to compile and install php on my machine? > Furthermore, how do i add mysql support to apache? Is there a > --with-mysql switch? > Kind regards, > dimitris > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] problem compiling php
On Saturday 09 November 2002 00:52, dk1eng wrote: > hi there again, > here's the problem: > I compiled apache using --enable-modules=so > What do i need to do now in order to compile and install php on my machine? The manual says it all. Basically: ./configure --with-apxs=/usr/local/apache/bin/apxs \ --with-config-file-path=/usr/local/apache/conf ... If you want a more comprehensive set of installation instructions have a look at the "LAMP guide", google for "lamp install php apache mysql", it's a bit old but the stuff there should still be relevant. > Furthermore, how do i add mysql support to apache? Is there a > --with-mysql switch? You probably want to add mysql support to PHP rather than apache. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Our policy is, when in doubt, do the right thing. -- Roy L. Ash, ex-president, Litton Industries */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] problem compiling php
hi there again, here's the problem: I compiled apache using --enable-modules=so What do i need to do now in order to compile and install php on my machine? Furthermore, how do i add mysql support to apache? Is there a --with-mysql switch? Kind regards, dimitris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem compiling PHP
I'm using php-4.2.1 on FreeBSD 4.5 with Apache2, I did the configurefine, I did a './configure --with-mysql --with-apxs2=/usr/local/apache/bin/apxs', but when I do a 'gmake' it comes up with php_functions.c:93: syntax error gmake[3]: *** [php_functions.lo] Error 1 gmake[3]: Leaving directory `/usr2/php-4.2.1/sapi/apache2filter' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/usr2/php-4.2.1/sapi/apache2filter' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr2/php-4.2.1/sapi' gmake: *** [all-recursive] Error 1 what can I do to fix this? I even tried to just do a 'make' but came upwith basically the same thing Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php