Re: Problem Installing mod_perl + mod_ssl in Solaris 8 - Please H elp !

2002-04-18 Thread Mark P. Fister

On Thu, Apr 18, 2002 at 10:19:09AM -0700, Fernando Munoz wrote:
> Thanks for your input Stas. I followed (step-by-step) the installation
> suggested in the guide and I ended with the same message after ..
> 
> # perl Makefile.PL USE_APACI=1 EVERYTHING=1 \
> DO_HTTPD=1 SSL_BASE=/usr/local/ssl \
> APACHE_PREFIX=/usr/local/apachessl \
> APACHE_SRC=../apache_x.x.x/src \
> APACI_ARGS='--enable-module=ssl,--enable-module=rewrite'
> .
> .
> .
> # make && make test && make install
> .
> .
> .
> ./gen_test_char >test_char.h
> ld.so.1: ./gen_test_char: fatal: libssl.so.0.9.6: open failed: No such file
> or directory
> *** Error code 137
> make: Fatal error: Command failed for target 'test_char.h'
> Current working directory /Repository/apache_1.3.24/src/main
> *** Error code 1
> make: Fatal error: Command failed for target 'subdirs'
> Current working directory /Repository/apache_1.3.24/src
> *** Error code 1
> make: Fatal error: Command failed for target 'build-std'
> Current working directory /Repository/apache_1.3.24
> *** Error code 1
> make: Fatal error: Command failed for target 'build'
> Current working directory /Repository/apache_1.3.24
> *** Error code 1
> make: Fatal error: Command failed for target 'apaci_httpd'
> 
> 
> I'm new with Solaris and it's starting to frustrate me. BTW I'm using
> binutils-2.11.2.
> 
> Thanks for any help.

I had this problem last week.  If you *HAVE* libssl.so.0.9.6 on your
system (which I assume you do, since you are using --enable-module=ssl),
you need to make sure that ldconfig sets up your system's dynamic
library paths properly or that your LD_LIBRARY_PATH environment variable
has the correct directory in it.  Go for the former, I'd say, but in my
case, I merely did this:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

And everything worked, because libssl had been previously installed with
a prefix of /usr/local.

-- 
\_/} Mark P. Fister Java, Java, everywhere, and all\_/}
\_/} eBay, Inc. the cups did shrink; Java, Java\_/}
\_/} Austin, TX everywhere, nor any drop to drink! \_/}



RE: Problem Installing mod_perl + mod_ssl in Solaris 8 - Please H elp !

2002-04-18 Thread Fernando Munoz

Well I tried your suggestion and it didn't work at first but, after revising
my steps I noticed that $LD_LIBRARY_PATH did not have /usr/local/ssl/lib
(where libssl libraries live) so I push that path there and ssl passed.
Unfortunately I got a different problem now ..

<=== src/modules/ssl
===> src/modules/perl
make: Fatal error: Don't know how to make target 'all'
Current working directory /Repository/apache_1.3.24/src/modules/perl
*** Error code 1
make: Fatal error: Command failed for target 'all'
Current working directory /Repository/apache_1.3.24/src/modules
*** Error code 1
make: Fatal error: Command failed for target 'subdirs'
Current working directory /Repository/apache_1.3.24/src
*** Error code 1
make: Fatal error: Command failed for target 'build-std'
Current working directory /Repository/apache_1.3.24
*** Error code 1
make: Fatal error: Command failed for target 'build'
Current working directory /Repository/apache_1.3.24
*** Error code 1
make: Fatal error: Command failed for target 'apaci_httpd'

It seems that I'm closer but not there yet. Thanks





-Original Message-
From: Mark P. Fister [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 10:39 AM
To: Fernando Munoz
Cc: 'Stas Bekman'; '[EMAIL PROTECTED]'
Subject: Re: Problem Installing mod_perl + mod_ssl in Solaris 8 - Please
H elp !


On Thu, Apr 18, 2002 at 10:19:09AM -0700, Fernando Munoz wrote:
> Thanks for your input Stas. I followed (step-by-step) the installation
> suggested in the guide and I ended with the same message after ..
> 
> # perl Makefile.PL USE_APACI=1 EVERYTHING=1 \
> DO_HTTPD=1 SSL_BASE=/usr/local/ssl \
> APACHE_PREFIX=/usr/local/apachessl \
> APACHE_SRC=../apache_x.x.x/src \
> APACI_ARGS='--enable-module=ssl,--enable-module=rewrite'
> .
> .
> .
> # make && make test && make install
> .
> .
> .
> ./gen_test_char >test_char.h
> ld.so.1: ./gen_test_char: fatal: libssl.so.0.9.6: open failed: No such
file
> or directory
> *** Error code 137
> make: Fatal error: Command failed for target 'test_char.h'
> Current working directory /Repository/apache_1.3.24/src/main
> *** Error code 1
> make: Fatal error: Command failed for target 'subdirs'
> Current working directory /Repository/apache_1.3.24/src
> *** Error code 1
> make: Fatal error: Command failed for target 'build-std'
> Current working directory /Repository/apache_1.3.24
> *** Error code 1
> make: Fatal error: Command failed for target 'build'
> Current working directory /Repository/apache_1.3.24
> *** Error code 1
> make: Fatal error: Command failed for target 'apaci_httpd'
> 
> 
> I'm new with Solaris and it's starting to frustrate me. BTW I'm using
> binutils-2.11.2.
> 
> Thanks for any help.

I had this problem last week.  If you *HAVE* libssl.so.0.9.6 on your
system (which I assume you do, since you are using --enable-module=ssl),
you need to make sure that ldconfig sets up your system's dynamic
library paths properly or that your LD_LIBRARY_PATH environment variable
has the correct directory in it.  Go for the former, I'd say, but in my
case, I merely did this:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

And everything worked, because libssl had been previously installed with
a prefix of /usr/local.

-- 
\_/} Mark P. Fister Java, Java, everywhere, and all\_/}
\_/} eBay, Inc. the cups did shrink; Java, Java\_/}
\_/} Austin, TX everywhere, nor any drop to drink! \_/}



Re: Problem Installing mod_perl + mod_ssl in Solaris 8 - Please H elp !

2002-04-18 Thread Stas Bekman

Fernando Munoz wrote:
> Well I tried your suggestion and it didn't work at first but, after revising
> my steps I noticed that $LD_LIBRARY_PATH did not have /usr/local/ssl/lib
> (where libssl libraries live) so I push that path there and ssl passed.
> Unfortunately I got a different problem now ..
> 
> <=== src/modules/ssl
> ===> src/modules/perl
> make: Fatal error: Don't know how to make target 'all'
> Current working directory /Repository/apache_1.3.24/src/modules/perl
> *** Error code 1
> make: Fatal error: Command failed for target 'all'
> Current working directory /Repository/apache_1.3.24/src/modules
> *** Error code 1
> make: Fatal error: Command failed for target 'subdirs'
> Current working directory /Repository/apache_1.3.24/src
> *** Error code 1
> make: Fatal error: Command failed for target 'build-std'
> Current working directory /Repository/apache_1.3.24
> *** Error code 1
> make: Fatal error: Command failed for target 'build'
> Current working directory /Repository/apache_1.3.24
> *** Error code 1
> make: Fatal error: Command failed for target 'apaci_httpd'
> 
> It seems that I'm closer but not there yet. Thanks

seems to me that you've run apache's ./configure again after you have 
configured mod_perl, which wiped off the modperl config. See if you 
didn't mess up with the order of things. You should have a Makefile and 
a bunch of modperl files in src/modules/perl after you run 'perl 
Makefile ...'

__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com





RE: Problem Installing mod_perl + mod_ssl in Solaris 8 - Please H elp !

2002-04-18 Thread Fernando Munoz

Thank you very much Stas and Mark !... Everything went fine and I have a
fresh Apache+mod_perl+mod_ssl running is this box. I noticed though that
after rebooting I need to push again the path into $LD_LIBRARY_PATH for
apache to run ??? any suggestion ?. But again Thanks so much.

-Original Message-
From: Stas Bekman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 11:23 AM
To: Fernando Munoz
Cc: 'Mark P. Fister'; '[EMAIL PROTECTED]'
Subject: Re: Problem Installing mod_perl + mod_ssl in Solaris 8 - Please
H elp !


Fernando Munoz wrote:
> Well I tried your suggestion and it didn't work at first but, after
revising
> my steps I noticed that $LD_LIBRARY_PATH did not have /usr/local/ssl/lib
> (where libssl libraries live) so I push that path there and ssl passed.
> Unfortunately I got a different problem now ..
> 
> <=== src/modules/ssl
> ===> src/modules/perl
> make: Fatal error: Don't know how to make target 'all'
> Current working directory /Repository/apache_1.3.24/src/modules/perl
> *** Error code 1
> make: Fatal error: Command failed for target 'all'
> Current working directory /Repository/apache_1.3.24/src/modules
> *** Error code 1
> make: Fatal error: Command failed for target 'subdirs'
> Current working directory /Repository/apache_1.3.24/src
> *** Error code 1
> make: Fatal error: Command failed for target 'build-std'
> Current working directory /Repository/apache_1.3.24
> *** Error code 1
> make: Fatal error: Command failed for target 'build'
> Current working directory /Repository/apache_1.3.24
> *** Error code 1
> make: Fatal error: Command failed for target 'apaci_httpd'
> 
> It seems that I'm closer but not there yet. Thanks

seems to me that you've run apache's ./configure again after you have 
configured mod_perl, which wiped off the modperl config. See if you 
didn't mess up with the order of things. You should have a Makefile and 
a bunch of modperl files in src/modules/perl after you run 'perl 
Makefile ...'

__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




RE: Problem Installing mod_perl + mod_ssl in Solaris 8 - Please H elp !

2002-04-18 Thread Per Einar Ellefsen

At 23:02 18.04.2002, Fernando Munoz wrote:
>Thank you very much Stas and Mark !... Everything went fine and I have a
>fresh Apache+mod_perl+mod_ssl running is this box. I noticed though that
>after rebooting I need to push again the path into $LD_LIBRARY_PATH for
>apache to run ??? any suggestion ?. But again Thanks so much.

LD_LIBRARY_PATH is a runtime setting for ld, so it'll have to be set on 
each run to be able to load shared object files. You should probably create 
a shell script which sets and exports LD_LIBRARY_PATH and then runs httpd 
with any needed options, and use that to start Apache.


-- 
Per Einar Ellefsen
[EMAIL PROTECTED]





RE: Problem Installing mod_perl + mod_ssl in Solaris 8 - Please H elp !

2002-04-19 Thread Fernando Munoz

I think the answer is here :

http://supportforum.sun.com/freesolaris/techfaqs.html?techfaqs_3057

but now I'm confused about how to configure this... 32-bits 64-bits wise.
The bottom line, I think, is the fact that ld is managed in a different way
as expected by teh compiling process in make.

-Original Message-
From: Stas Bekman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 9:50 PM
Cc: Mod-perl list
Subject: Re: Problem Installing mod_perl + mod_ssl in Solaris 8 - Please
H elp !


Per Einar Ellefsen wrote:
> At 23:02 18.04.2002, Fernando Munoz wrote:
> 
>> Thank you very much Stas and Mark !... Everything went fine and I have a
>> fresh Apache+mod_perl+mod_ssl running is this box. I noticed though that
>> after rebooting I need to push again the path into $LD_LIBRARY_PATH for
>> apache to run ??? any suggestion ?. But again Thanks so much.
> 
> 
> LD_LIBRARY_PATH is a runtime setting for ld, so it'll have to be set on 
> each run to be able to load shared object files. You should probably 
> create a shell script which sets and exports LD_LIBRARY_PATH and then 
> runs httpd with any needed options, and use that to start Apache.

or add the path to /etc/ld.so.conf and run ldconfig once for the changes 
to take the effect.
Alternatively set it in the .bashrc or whatever shell's startup script 
is used by the shell the webserver is started under.

But I think you should figure out why you don't get the path compiled 
in, solve it and forget about the workarounds. Check the docs.

__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com