|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
mod_perl installation problem
config command:
perl Makefile.PL USE_APXS=1 WITH_APXS=/usr/lo cal/apache/bin/apxs EVERYTHING=1 cc -shared -L/usr/local/lib -o libperl.so mod_perl.lo perlxsi.lo perl_config.lo perl_util.lo perlio.lo mod_perl_opmask.lo Apache.lo Constants.lo ModuleConfig.lo Log.lo URI.lo Util.lo Connection.lo Server.lo File.lo Table.lo -rdynamic -L/us r/local/lib /usr/lib/perl/5.6.1/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.6 .1/CORE -lperl -ldl -lm -lc -lcrypt /usr/bin/ld: cannot find -lperl collect2: ld returned 1 exit status make[1]: *** [libperl.so] Error 1 make[1]: Leaving directory `/home/info23/mod_perl-1.26/apaci' make: *** [apxs_libperl] Error 2 Debian SID Perl 5.6.1 apache 1.3.22 mod_perl 1.26 in the apache_1.3.22/src/modules/perl/,there is no libperl.a why? |
|
#2
|
||||
|
||||
|
Have you recompiled apache on this box? If so, you did compile it with --activate-module=src/modules/perl/libperl.a in the ./configure?
Are you sure that you're using the correct apxs ? I don't see anything, except what I enumerated above, that would freak out what you're doing. |
|
#3
|
|||
|
|||
|
Quote:
I used this: perl Makefile.PL \ >APACHE-SRC=../apache-1.3.22/src \ >DO_HTTPD=1 \ >USE_APACI=1 \ >PERL_HTTPD=1 \ >EVERYTHING=1 \ but there is a same error /usr/bin/ld: cannot find -lperl collect2: ld returned 1 exit status make: *** [dummy] Error 1 Creating Makefile in src + configured for Linux platform + setting C pre-processor to cc -E + checking for system header files + adding selected modules o perl_module uses ConfigStart/End + mod_perl build type: OBJ + setting up mod_perl build environment + adjusting Apache build environment + enabling Perl support for SSI (mod_include) + checking sizeof various data types + doing sanity check on compiler and options ** A test compilation with your Makefile configuration ** failed. The below error output from the compilation ** test will give you an idea what is failing. Note that ** Apache requires an ANSI C Compiler, such as gcc. ======== Error Output for sanity check ======== ============= End of Error Report ============= the point is : there is no libperl.a in apache_1.3.22/src/modules/perl Last edited by epic : January 14th, 2002 at 01:56 AM. |
|
#4
|
|||
|
|||
|
You're using DSO method in your first post then in 2nd post you're building it by hand statically. You need to make up your mind which way you want to choose.
>> the point is : there is no libperl.a in apache_1.3.22/src/modules/perl The problem is, why should libperl.a be in that directory in the first place when mod_perl is NOT a standard module of Apache. The main problem for your compliation failure is that, your Perl was installed to a non-standard location. If you run BSD, it won't happen at all. Check this thread to see why -> http://forums.devshed.com/showthrea...8723&forumid=31 |
|
#5
|
||||
|
||||
|
Here's the typical flow of a mod_perl/apache install:
Go to http://perl.apache.org/ to read about installing mod_perl Keep in mind that you have to rebuild mod_perl and probably apache if you decide to upgrade perl. Keep track of all the commands you use somehow, to make this a piece of cake later on. |
|
#6
|
|||
|
|||
|
On Debian box!!
when I install mod_perl on RedHat ,it is right!
but on Debian SID ,the error occured! Help me!! |
|
#7
|
||||
|
||||
|
Have you cleared out everything and started from scratch, and then done the steps in the order I layed out above?
Can you be a little more specific about what you've done and what you're doing to try and fix it? |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > mod_perl installation problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|