php-install Digest 14 Jul 2001 06:45:53 -0000 Issue 361 Topics (messages 3536 through 3543): php-406 under slackware 7.1 - ./configure problems 3536 by: Jairo Tcatchenco 3542 by: James Tan PLZ HELP! php won't compile:( PLZ HELP 3537 by: alexus --with-imap-ssl 3538 by: alexus newbie help? 3539 by: Gwendolyn 3540 by: Gwendolyn Debian Install 3541 by: Sarah Fish GD shared - libjpeg.so.62 missing?... 3543 by: Richard Lynch Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
I have tried many times and with differents versions and downloads, but the problem allways happens. When I started ./configure, with or without parameters, the following message is displayed: (...) checking for gcc option to accept ANSI C... none needed checking for ranlib... ranlib checking whether gcc and cc understand -c and -o together... yes checking whether ln -s works... yes checking for flex... lex checking for yywrap in -ll... no checking lex output file root... ./configure: lex: command not found configure: error: cannot find output from lex; giving up I read the config.log and the last lines are: (...) configure:2209: cc -c conftest.c -o conftest.o 1>&5 configure:2236: checking whether ln -s works configure:2260: checking for flex configure:2294: checking for yywrap in -ll configure:2313: gcc -o conftest -g -O2 conftest.c -ll 1>&5 /usr/i386-slackware-linux/bin/ld: cannot open -ll: No such file or directory collect2: ld returned 1 exit status configure: failed program was: #line 2302 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char yywrap(); int main() { yywrap() ; return 0; } configure:2337: checking lex output file root Could someone help me? What is the problem? What I have to do to correct this? Thanks a lot. [EMAIL PROTECTED]
dear Jairo, u did not have flex installed on your sistem... try find flex software for your system and install it before you compile :) hope it helps... regards, James Jairo Tcatchenco wrote: > I have tried many times and with differents versions and > downloads, but the problem allways happens. When I started ./configure, > with or without parameters, the following message is displayed: > > (...) checking for gcc option to accept ANSI C... none needed > checking for ranlib... ranlib > checking whether gcc and cc understand -c and -o together... yes > checking whether ln -s works... yes > checking for flex... lex > checking for yywrap in -ll... no > checking lex output file root... ./configure: lex: command not found > configure: error: cannot find output from lex; giving up > > I read the config.log and the last lines are: > > (...) configure:2209: cc -c conftest.c -o conftest.o 1>&5 > configure:2236: checking whether ln -s works > configure:2260: checking for flex > configure:2294: checking for yywrap in -ll > configure:2313: gcc -o conftest -g -O2 conftest.c -ll 1>&5 > /usr/i386-slackware-linux/bin/ld: cannot open -ll: No such file or > directory > collect2: ld returned 1 exit status > configure: failed program was: > #line 2302 "configure" > #include "confdefs.h" > /* Override any gcc2 internal prototype to avoid an error. */ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ > char yywrap(); > > int main() { > yywrap() > ; return 0; } > configure:2337: checking lex output file root > > Could someone help me? What is the problem? What I have to do to > correct this? Thanks a lot. > > [EMAIL PROTECTED]
----- Original Message ----- From: "alexus" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 13, 2001 4:48 PM Subject: PLZ HELP! php won't compile:( PLZ HELP > ./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/m > ysql/ --with-imap --enable-versioning --enable-ttrack-vars --with-ldap --ena > ble-gd=../gd-1.8.4 --with-png=../libpng-1.0.11 --with-jpg=../jpeg-6b --with- > zlib-dir=../zlib-1.1.3 > > this is my configuration line.. i dont get any erros while running > ./configure but i get this error after doing make > please help > > Making all in TSRM > /bin/sh ../libtool --silent --mode=compile > gcc -DHAVE_CONFIG_H -I. -I. -I../main -DMOD_SSL=208104 -DEAPI -DEAPI_MM -D > USE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -c TSRM.c > /bin/sh ../libtool --silent --mode=compile > gcc -DHAVE_CONFIG_H -I. -I. -I../main -DMOD_SSL=208104 -DEAPI -DEAPI_MM -D > USE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -c tsrm_strtok_r.c > /bin/sh ../libtool --silent --mode=compile > gcc -DHAVE_CONFIG_H -I. -I. -I../main -DMOD_SSL=208104 -DEAPI -DEAPI_MM -D > USE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -c tsrm_virtual_cwd.c > tsrm_virtual_cwd.c: In function `virtual_open': > tsrm_virtual_cwd.c:568: `mode_t' is promoted to `int' when passed through > `...' > tsrm_virtual_cwd.c:568: (so you should pass `int' not `mode_t' to `va_arg') > *** Error code 1 > > Stop in /usr/local/src/php-4.0.6/TSRM. > *** Error code 1 > > Stop in /usr/local/src/php-4.0.6. > > thank you in advance > >
----- Original Message ----- From: "alexus" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 13, 2001 4:41 PM Subject: --with-imap-ssl > i've tryed --with-imap-ssl in my configure line and i got this.. > > ..... > checking for SSL support in IMAP... yes > configure: error: This c-client library does not support SSL. Recompile or > remove --with-imap-ssl from configure line. > su-2.05# > > what needs to be done in order to make it work? >
I'm trying to install php over postgresql on a customer's server. When I originally started the installation, I gave the wrong directory for postgresql to the ./configure (/usr/local) ... since then I've reconfigured php and apache, make'd both as per the "quick installation" instructions. Apache is registering the rebuilds, but php is claiming it's not been built since that erroneous attempt two days (and 40 rebuilds) ago. Does anyone have any ideas on why this is occurring? -- gwen. Systems Adminstrator, pair Networks, Inc. http://www.gw3n.com/ "There are flaws in anything created by humans." -- Dave Dittrich in a Slashdot interview.
Ok, answered my own question. As a last resort, I wiped and recompiled Apache, and that seemed to work. Thanks to all who gave input! -- gwen. Systems Adminstrator, pair Networks, Inc. http://www.gw3n.com/ "There are flaws in anything created by humans." -- Dave Dittrich in a Slashdot interview.
I just installed php on my debian system using... apt-get install php4 it installed fine (no error messages). I created a test php file... this being the only line: <? phpinfo(); ?> and it displays as text. where do I go from here? I'm pretty much a novice at linux and configuration, but if you give me a direction to go in, I'd very much appreciate it.
Warning: Sleep-deprived post... Please Cc: me in replies... I know I'm not the most clueful guy, but... I'm trying to compile GD as a shared library, and failing miserably. Comfiguring/making without the "shared," part in "--with-gd=shared,/blah/blah/blah" works just fine, and the resulting CGI binary has GD support. Alas, when trying to add that "shared," bit in there, I always get a big ol' box at the end of configure ATTENTION... simple feature... check debug.log. So, I do, and there's this in it. [root@www php-4.0.4]# less debug.log CONFIGURE: './configure' '--with-mysql=/usr/local/mysql' '--with-pgsql=/usr/sr c/postgresql-6.5.2' '--enable-track-vars' '--enable-trans-sid' '--enable-ftp' '- -enable-gd-imgstrttf' '--with-gd=shared,/home/sites/home/users/admin/software/gd -1.8.4/' '--with-jpeg-dir=/usr/local' '--with-png-dir=/home/sites/home/users/adm in/software/libpng-1.0.12/' '--with-zlib-dir=shared,/home/sites/home/users/admin /software/zlib' CC: gcc CFLAGS: -g -O2 CPPFLAGS: CXX: CXXFLAGS: INCLUDES: -I$(top_builddir)/Zend -I/home/sites/home/users/admin/software/gd -1.8.4/ -I/usr/local/mysql/include/mysql LDFLAGS: -Wl,-rpath,/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql -Wl,-rpath,/usr/lib/pgsql -L/usr/lib/pgsql LIBS: -lpq -lmysqlclient -lpng -lz -lresolv -lm -ldl -lcrypt -lnsl -lreso lv -L/usr/local/lib -ljpeg DLIBS: SAPI: cgi PHP_RPATHS: /usr/local/mysql/lib/mysql /usr/lib/pgsql uname -a: Linux www.actbaby.com 2.2.14C5 #1 Mon May 8 10:14:32 PDT 2000 i586 u nknown gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/mysql/lib/mysql -L/usr/local/mysq l/lib/mysql -Wl,-rpath,/usr/lib/pgsql -L/usr/lib/pgsql conftest.c -lpq -lmysqlcl ient -lpng -lz -lresolv -lm -ldl -lcrypt -lnsl -lresolv -L/usr/local/lib -ljpeg 1>&5 ./conftest: error in loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory [root@www php-4.0.4]# whereis libjpeg.so.62 libjpeg.so: /usr/local/lib/libjpeg.so.62 /usr/local/lib/libjpeg.so [root@www php-4.0.4]# So, other than /usr/local/lib/libjpeg.so.62 and in the jpeg-6b source tree, and inside lib in the jpeg-62 source tree and in the PHP-4.0.4 directory, where *ELSE* could I place libjpeg.so.62 for configure to find it, and why can it find it okay in a static GD build, but not shared? I'm assuming other people have compiled GD dynamically with JPEG support, but I'm failing miserably. Cobalt RaQ, I compiled jpeg --enabled-shared, (though I think that's the default for libjpeg...) and have tried about 20 times to do this with variations on the various paths and suchlike... I got close at one point -- I had a gd.so, but attempting to dl() it complained about the same missing jpeg lib, and I couldn't dl that, cuz it's not a PHP .so, just a regular one, and throwing it in the web directory next to gd.so didn't help... I think the gd.so was actually not complaining about getimagefromjpeg not being defined, so it even had (I think) the JPEG functions in there... But maybe I'm dreaming that part. I'm trying to avoid making this one box of 7 have a different PHP module just to get GD support on there... -- WARNING [EMAIL PROTECTED] email address is an endangered species Use [EMAIL PROTECTED] instead