|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
apachectl configtest
Hi
On Sparc2.6, I source 2 different .cshrc files. One .cshrc file works fine when running "apachectl configtest". When I source another .cshrc file, I get this error when running "apachectl configtest": ld.so.1: /usr/local/bin/httpd: fatal: libz.so: open failed: No such file or directory Killed I am guesssing that something in the env is not set. Thanks, Cindy |
|
#2
|
|||
|
|||
|
Show us both your .cshrc files.
>> ld.so.1: /usr/local/bin/httpd: fatal: libz.so Seems like you are using non-standard path again. |
|
#3
|
|||
|
|||
|
#This is the .cshrc file that works with apachectl
# # Check for OS type set OS="none" if ( `/usr/bin/uname -r | cut -c1` == "5" ) then set OS="solaris" endif if ( $OS == "none" ) then echo "Unknown OS"; exit 2 endif umask 002 set noclobber set filec limit coredumpsize 0 set npath1=() set npath2=() set npath3=() set npath4=() if (! $?OPENWINHOME ) then setenv OPENWINHOME /usr/openwin endif setenv LD_RUN_PATH /usr/openwin/lib:/usr/ucblib setenv MANPATH /site/man:/usr/man:/usr/openwin/man:/opt/man:/opt/SUNWspro/man setenv IDL_DIR /opt/idl_5 if (-f /opt/SUNWspro/bin/fpversion ) then setenv FP `/opt/SUNWspro/bin/fpversion -foption | awk '{print $1}'` endif setenv LD_LIBRARY_PATH .:/opt/SUNWspro/SC4.2/lib:$OPENWINHOME/lib:/usr/lib:/usr/ucblib:/site/lib:$JAVA_HOME/lib setenv CLASSPATH .:$JAVA_HOME/lib/classes.zip setenv ALT_JDK $JAVA_HOME setenv THREADS_FLAG native setenv HOTJAVA_HOME /site/java/HotJava # hotjava directory setenv TCAT /usr/lib/lp/postscript/dpost # so man -t xxx | lp works setenv XNLSPATH /usr/openwin/lib/X11/nls set npath1=(/usr/local/bin /local/bin /site/bin /site/scripts /site/bin/mmxp) set npath2=(/usr/bin /etc /usr/etc /usr/sbin /opt/SUNWspro/bin /opt/SUNWspro/SC/bin /usr/ucb /usr/ccs/bin /usr/lib/lp/postscript) set npath3=($OPENWINHOME/{bin,bin/xview}) set npath4=(/usr/hec/bin /opt/wordperfect/{wpbin,wplib}) #This is .cshrc that does not work with apachectl # set history=50 if ( $TERM == "vt100" ) then if ( -f /usr/bin/X11/resize ) then /usr/bin/X11/resize endif if ( -f /usr/openwin/bin/resize ) then /usr/openwin/bin/resize endif endif stty erase ^H setenv EDITOR vi setenv VISUAL vi set EDITOR=vi .:/opt/SUNWspro/SC4.2/lib:$OPENWINHOME/lib:/usr/lib:/usr/ucblib:/site/lib:$JAVA_HOME/lib set path=(/bin /usr/bin /usr/ucb /usr/sbin /usr/bin/X11 /usr/ccs/bin /usr /support/scripts /usr/lib/autofs /usr/lib /usr/local/bin /site/bin /usr/local/lib /site/lib /usr/local/frontpage/version3.0/bin /usr/local/frontpage/version3.0 /usr/opt/SUNWmd/sbin /opt/SUNWspro/bin /usr/openwin/bin $path) setenv TCLLIBPATH "/usr/local/lib/tnm2.1.5 /usr/local/lib/tkined1.4.5" setenv TCL_LIBRARY "/usr/local/lib/tcllib /usr/local/lib/libtcl7.5.so" unsetenv LD_LIBRARY_PATH |
|
#4
|
|||
|
|||
|
Hi freebsd
I just copied libz.so from /usr/local/lib into /usr/lib and now it is working. Thanks, Cindy |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > apachectl configtest |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|