Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've tried to make symbolic links but it didn't work.
Since I alread have perl, I guess I need a perl module for apache2, but I don't know what exactly to install. http://sunfreeware.com only has perl or apache but no perl module for apache.
Have you checked blastwave.org for apache2 / perl module packages ?
Thanks! I found it there and installed it doing the following:
Quote:
perl Makefile.PL MP_APXS=/usr/apache2/bin/apxs
then I got it installed with the following warnings at the end of the installation:
Quote:
[warning] mod_perl dso library will be built as mod_perl.so
[warning] You'll need to add the following to httpd.conf:
[warning]
[warning] LoadModule perl_module modules/mod_perl.so
[warning]
[warning] depending on your build, mod_perl might not live in
[warning] the modules/ directory.
[warning] Check the results of
[warning]
[warning] $ /usr/apache2/bin/apxs -q LIBEXECDIR
[warning]
[warning] and adjust the LoadModule directive accordingly.
"/usr/apache2/bin/apxs -q LIBEXECDIR" gives me this:
Quote:
/usr/apache2/libexec
The problem ist that there is nowhere either a mod_perl.so (or a libperl.so)!
So in my configuration, there is no modules directory, but there is no perl module in the libexex either!
Ok. Very stupid from me: I forgot the command make! I had so much configurations to make that I just got concentrated on the first command and totally forgot the next ones! Sorry.
But I still have 2 questions:
- the one on the previous post: why does
Quote:
pkgadd -d ./SUNWapch2d
not work?
I did the command "make" and got this error message:
Quote:
/usr/ucb/cc: language optional software package not installed
even though cc is under /usr/ucb and in the $PATH.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
The command "pkgadd -d SUNWapch2d" is failing as this package is already installed on your system, and anyway you do not provide a directory where the package is present but the directory where the system stores its packages data.
/usr/ucb/cc is a C compiler front end designed to simulate a BSD (SunOS4.x) environment on Solaris, but you still need a back-end compiler.
Don't use it, use instead either gcc (/usr/sfw/bin/gcc) or better, Sun Studio 11 (/opt/SUNWspro/bin/cc).
LD_LIBRARY_PATH gives you the flexibility to set/override the {run-time} linker search paths. As long as you know what you are doing with LD_LIBRARY_PATH, you should be fine.
I don't see any compelling reason, not to give it a try. If it works, you are done -- you don't have to go through this trouble of installing various packages.
LD_LIBRARY_PATH gives you the flexibility to set/override the {run-time} linker search paths. As long as you know what you are doing with LD_LIBRARY_PATH, you should be fine.
I don't see any compelling reason, not to give it a try. If it works, you are done -- you don't have to go through this trouble of installing various packages.
I doesn't work: in httpd.conf, I have the line:
Quote:
LoadModule perl_module libexec/libperl.so
so it looks directly in the apache2 directory.
If I write:
Syntax error on line 285 of /etc/apache2/httpd.conf:
Can't locate API module structure `perl_module' in file /usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE/libperl.so: ld.so.1: /usr/apache2/bin/httpd: fatal: perl_module: can't find symbol
This perl_module as to be compiled with my apache.
/usr/ucb/cc is a C compiler front end designed to simulate a BSD (SunOS4.x) environment on Solaris, but you still need a back-end compiler.
Don't use it, use instead either gcc (/usr/sfw/bin/gcc) or better, Sun Studio 11 (/opt/SUNWspro/bin/cc).
I used gcc (Sun Studio 11 is not installed). I have "only" one more error:
Quote:
make: Fatal error: Command failed for target `modperl_lib'
I'm googling in order to figure out what net have I have to do. If you have any idea, I'll be very thanksfull. I'd like to have this apache2 eventually to work!
This is a patch. Save the contents to a file (for example patch-mod-perl.diff) in the top directory that is created when you extracted mod-perl (according to the contents it should be: mod_perl-1.99_04) and run:
Code:
patch -p1 -i patch-mod-perl.diff
Watch for errors and if there are no any, then run "make" as usual.
This is a patch. Save the contents to a file (for example patch-mod-perl.diff) in the top directory that is created when you extracted mod-perl (according to the contents it should be: mod_perl-1.99_04) and run:
Code:
patch -p1 -i patch-mod-perl.diff
Watch for errors and if there are no any, then run "make" as usual.
Thanks for your help. I tried and got
Quote:
patch -p1 -i patch-mod-perl.diff
Looks like a unified context diff.
Hunk #1 failed at line 508.
1 out of 1 hunks failed: saving rejects to src/modules/perl/mod_perl.c.rej
done
I have actually mod_perl-2.0.2 and I guess there should be some adjustment, but I'm certainly not abble to make them.
I just cannot believe that it so difficult to have perl to run with apache2!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.