Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 11th, 2002, 01:13 AM
epic epic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 10 epic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?

Reply With Quote
  #2  
Old January 11th, 2002, 08:45 AM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,635 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 44 m 19 sec
Reputation Power: 77
Send a message via AIM to Hero Zzyzzx
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.

Reply With Quote
  #3  
Old January 14th, 2002, 01:51 AM
epic epic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 10 epic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by Hero Zzyzzx
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.


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.

Reply With Quote
  #4  
Old January 14th, 2002, 03:45 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #5  
Old January 14th, 2002, 09:20 AM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,635 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 44 m 19 sec
Reputation Power: 77
Send a message via AIM to Hero Zzyzzx
Here's the typical flow of a mod_perl/apache install:
  • untar apache source
  • untar mod_perl
  • configure, build and install mod_perl, pointing it to the apache source
  • configure, build and install apache, enabling the libperl.a you created when installing mod_perl, which will be in the src/modules/perl directory of the apache source tree.
My guess is that you aren't approaching this correctly. The "loose linux paths" thing probably isn't really the issue here.

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.

Reply With Quote
  #6  
Old January 14th, 2002, 06:32 PM
epic epic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 10 epic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
On Debian box!!

when I install mod_perl on RedHat ,it is right!
but on Debian SID ,the error occured!
Help me!!

Reply With Quote
  #7  
Old January 15th, 2002, 09:10 AM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,635 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 44 m 19 sec
Reputation Power: 77
Send a message via AIM to Hero Zzyzzx
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?

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > mod_perl installation problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway