Building mod_perl2 on Leopard
Building mod_perl2 on Leopard
am 10.11.2007 15:56:46 von Hendrik Van Belleghem
------=_Part_53773_240989.1194706606622
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi,
I was one of those many people lining up to get Leopard (Mac OS X 10.5). It
comes with Apache2 but not with mod_perl2.. I got into some problems getting
it to compile properly. I've described quite a bit of the process on my blog
but this is the short version (YMMV):
export ARCHFLAGS="-arch x86_64"
Compile/install as usual
The platform should be indicate as image type by looking at the signature
file /usr/libexec/apache2/mod_perl.so
This worked on my intel based macbook..
Some more details on the fix:
http://use.perl.org/article.pl?sid=07/11/09/2241222
Initial problem description:
http://use.perl.org/~Beatnik/journal/34862
--
Hendrik Van Belleghem
Spine - The backbone for your website - http://spine.sf.net
------=_Part_53773_240989.1194706606622
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi,
I was one of those many people lining up to get Leopard (Mac OS X 10.5). It comes with Apache2 but not with mod_perl2.. I got into some problems getting it to compile properly. I've described quite a bit of the process on my blog but this is the short version (YMMV):
export ARCHFLAGS="-arch x86_64"
Compile/install as usual
The platform should be indicate as image type by looking at the signature
file
/usr/libexec/apache2/mod_perl.so
This worked on my intel based macbook..
Some more details on the fix:
Initial problem description:
http://use.perl.org/~Beatnik/journal/34862
--
Hendrik Van Belleghem
Spine - The backbone for your website -
------=_Part_53773_240989.1194706606622--
Re: Building mod_perl2 on Leopard
am 11.11.2007 01:18:11 von jonathan vanasco
Slightly off-topic:
The 10.2 10.3 and maybe 10.4 versions of Apache that came with OS X
had library conflicts with mysql/php if you tried to compile modperl
1 or 2
Can I interpret your post to mean that one does not have to rebuild
Apache2 now too?
On Nov 10, 2007, at 9:56 AM, Hendrik Van Belleghem wrote:
> Hi,
>
> I was one of those many people lining up to get Leopard (Mac OS X
> 10.5). It comes with Apache2 but not with mod_perl2.. I got into
> some problems getting it to compile properly. I've described quite
> a bit of the process on my blog but this is the short version (YMMV):
>
> export ARCHFLAGS="-arch x86_64"
>
> Compile/install as usual
>
> The platform should be indicate as image type by looking at the
> signature
>
> file /usr/libexec/apache2/mod_perl.so This worked on my intel based
> macbook..
>
> Some more details on the fix:
> http://use.perl.org/article.pl?sid=07/11/09/2241222
>
> Initial problem description:
> http://use.perl.org/~Beatnik/journal/34862
>
> --
> Hendrik Van Belleghem
> Spine - The backbone for your website - http://spine.sf.net
Re: Building mod_perl2 on Leopard
am 11.11.2007 02:00:19 von Hendrik Van Belleghem
------=_Part_54747_24712172.1194742819661
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi,
To be honest, I haven't been able to get DBD::mysql compiled, nor
Apache2::Request (properly - still some strange errors in the apache2 error
log when I try to load it).
I haven't fully tested the Apache2 (or mod_perl for that matter). I'm not
building it with PHP but it does appear to come with leopard, as does mysql.
Some threads discuss installing DBD::mysql on leopard (occasionally
suggesting older versions of the module). Should I post some build output?
:)
Hendrik
On Nov 11, 2007 1:18 AM, Jonathan Vanasco wrote:
>
> Slightly off-topic:
>
> The 10.2 10.3 and maybe 10.4 versions of Apache that came with OS X
> had library conflicts with mysql/php if you tried to compile modperl
> 1 or 2
>
> Can I interpret your post to mean that one does not have to rebuild
> Apache2 now too?
>
>
>
>
> On Nov 10, 2007, at 9:56 AM, Hendrik Van Belleghem wrote:
>
> > Hi,
> >
> > I was one of those many people lining up to get Leopard (Mac OS X
> > 10.5). It comes with Apache2 but not with mod_perl2.. I got into
> > some problems getting it to compile properly. I've described quite
> > a bit of the process on my blog but this is the short version (YMMV):
> >
> > export ARCHFLAGS="-arch x86_64"
> >
> > Compile/install as usual
> >
> > The platform should be indicate as image type by looking at the
> > signature
> >
> > file /usr/libexec/apache2/mod_perl.so This worked on my intel based
> > macbook..
> >
> > Some more details on the fix:
> > http://use.perl.org/article.pl?sid=07/11/09/2241222
> >
> > Initial problem description:
> > http://use.perl.org/~Beatnik/journal/34862
> >
> > --
> > Hendrik Van Belleghem
> > Spine - The backbone for your website - http://spine.sf.net
>
>
--
Hendrik Van Belleghem
Spine - The backbone for your website - http://spine.sf.net
------=_Part_54747_24712172.1194742819661
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi,
To be honest, I haven't been able to get DBD::mysql compiled, nor Apache2::Request (properly - still some strange errors in the apache2 error log when I try to load it).
I haven't fully tested the Apache2 (or mod_perl for that matter). I'm not building it with PHP but it does appear to come with leopard, as does mysql.
Some threads discuss installing DBD::mysql on leopard (occasionally suggesting older versions of the module). Should I post some build output? :)
Hendrik
On Nov 11, 2007 1:18 AM, Jonathan Vanasco <
> wrote:
Slightly off-topic:
The 10.2 10.3 and maybe 10.4 versions of Apache that came with OS X
had library conflicts with mysql/php if you tried to compile modperl
1 or 2
Can I interpret your post to mean that one does not have to rebuild
Apache2 now too?
On Nov 10, 2007, at 9:56 AM, Hendrik Van Belleghem wrote:
> Hi,
>
> I was one of those many people lining up to get Leopard (Mac OS X
> 10.5). It comes with Apache2 but not with mod_perl2.. I got into
> some problems getting it to compile properly. I've described quite
> a bit of the process on my blog but this is the short version (YMMV):
>
> export ARCHFLAGS="-arch x86_64"
>
> Compile/install as usual
>
> The platform should be indicate as image type by looking at the
> signature
>
> file /usr/libexec/apache2/mod_perl.so This worked on my intel based
> macbook..
>
> Some more details on the fix:
>
>
> Initial problem description:
>
>
> --
> Hendrik Van Belleghem
> Spine - The backbone for your website -
--
Hendrik Van Belleghem
Spine - The backbone for your website -
http://spine.sf.net
------=_Part_54747_24712172.1194742819661--
Re: Building mod_perl2 on Leopard
am 12.11.2007 15:57:39 von jonathan vanasco
On Nov 10, 2007, at 8:00 PM, Hendrik Van Belleghem wrote:
> To be honest, I haven't been able to get DBD::mysql compiled, nor
> Apache2::Request (properly - still some strange errors in the
> apache2 error log when I try to load it).
> I haven't fully tested the Apache2 (or mod_perl for that matter).
> I'm not building it with PHP but it does appear to come with
> leopard, as does mysql.
> Some threads discuss installing DBD::mysql on leopard (occasionally
> suggesting older versions of the module). Should I post some build
> output? :)
I'm curious- Why have you opted for using the stock Apache2 install?
By habit I always build from source and toss in /usr/local/apache2--
Apple doesn't really maintain those apps after initial release.
I usually install libapreq through the c configure, not perl
wrapper. i've had better luck
./configure --with-expat=/usr/local/apr --with-apache2-apxs=/usr/
local/apache2/bin/apxs --enable-perl-glue
make
make test
make install
Re: Building mod_perl2 on Leopard
am 12.11.2007 16:30:02 von Hendrik Van Belleghem
------=_Part_59862_4995191.1194881402085
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Actually, I'm still using the default Apache2.. I did built mod_perl2 from
scratch. One of my fellow perl mongers installed Leopard before I did and
mentioned that he couldn't find mod_perl2 on it.. I just assumed that it
wasn't there so I rebuilt :)
Any ideas about the architecture signature in the original Leopard
mod_perl.so? And why some seem to have an earlier built?
Hendrik
On Nov 12, 2007 3:57 PM, Jonathan Vanasco wrote:
>
> On Nov 10, 2007, at 8:00 PM, Hendrik Van Belleghem wrote:
> > To be honest, I haven't been able to get DBD::mysql compiled, nor
> > Apache2::Request (properly - still some strange errors in the
> > apache2 error log when I try to load it).
> > I haven't fully tested the Apache2 (or mod_perl for that matter).
> > I'm not building it with PHP but it does appear to come with
> > leopard, as does mysql.
> > Some threads discuss installing DBD::mysql on leopard (occasionally
> > suggesting older versions of the module). Should I post some build
> > output? :)
>
> I'm curious- Why have you opted for using the stock Apache2 install?
>
> By habit I always build from source and toss in /usr/local/apache2--
> Apple doesn't really maintain those apps after initial release.
>
> I usually install libapreq through the c configure, not perl
> wrapper. i've had better luck
>
> ./configure --with-expat=/usr/local/apr --with-apache2-apxs=/usr/
> local/apache2/bin/apxs --enable-perl-glue
> make
> make test
> make install
>
--
Hendrik Van Belleghem
Spine - The backbone for your website - http://spine.sf.net
------=_Part_59862_4995191.1194881402085
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Actually, I'm still using the default Apache2.. I did built mod_perl2 from scratch. One of my fellow perl mongers installed Leopard before I did and mentioned that he couldn't find mod_perl2 on it.. I just assumed that it wasn't there so I rebuilt :)
Any ideas about the architecture signature in the original Leopard mod_perl.so? And why some seem to have an earlier built?
Hendrik
On Nov 12, 2007 3:57 PM, Jonathan Vanasco <
> wrote:
On Nov 10, 2007, at 8:00 PM, Hendrik Van Belleghem wrote:
> To be honest, I haven't been able to get DBD::mysql compiled, nor
> Apache2::Request (properly - still some strange errors in the
> apache2 error log when I try to load it).
> I haven't fully tested the Apache2 (or mod_perl for that matter).
> I'm not building it with PHP but it does appear to come with
> leopard, as does mysql.
> Some threads discuss installing DBD::mysql on leopard (occasionally
> suggesting older versions of the module). Should I post some build
> output? :)
I'm curious- Why have you opted for using the stock Apache2 install?
By habit I always build from source and toss in /usr/local/apache2--
Apple doesn't really maintain those apps after initial release.
I usually install libapreq through the c configure, not perl
wrapper. i've had better luck
./configure --with-expat=/usr/local/apr --with-apache2-apxs=/usr/
local/apache2/bin/apxs --enable-perl-glue
make
make test
make install
--
Hendrik Van Belleghem
Spine - The backbone for your website -
------=_Part_59862_4995191.1194881402085--
Re: Building mod_perl2 on Leopard
am 26.09.2008 18:16:33 von ScienceMan
Was this ever resolved? I have tried the flags suggested, but still see upon
doing a "make test" the following errors: (Have substituted [...] for my
work directory path
cd t; make test
perl -MTest::Harness -e 'runtests(@ARGV)' version.t cookie.t params.t
parsers.t error.t util.t
version....dyld: Library not loaded: /usr/lib/libapreq2.3.dylib
Referenced from: [...]/libapreq2-2.08/library/t/.libs/version
Reason: no suitable image found. Did find:
[...]/libapreq2-2.08/library/.libs/libapreq2.3.dylib: mach-o, but wrong
architecture
/usr/lib/libapreq2.3.dylib: mach-o, but wrong architecture
/usr/lib/libapreq2.3.dylib: mach-o, but wrong architecture
version....dubious
etc.
The command "file library/.libs/libapreq2.3.6.0.dylib" returns:
library/.libs/libapreq2.3.6.0.dylib: Mach-O 64-bit dynamically linked shared
library x86_64
This is on a Leopard-based Intel Mac under OS X 10.5.5.
Advice would be welcome!
Hendrik Van Belleghem wrote:
>
> Actually, I'm still using the default Apache2.. I did built mod_perl2 from
> scratch. One of my fellow perl mongers installed Leopard before I did and
> mentioned that he couldn't find mod_perl2 on it.. I just assumed that it
> wasn't there so I rebuilt :)
>
> Any ideas about the architecture signature in the original Leopard
> mod_perl.so? And why some seem to have an earlier built?
>
> Hendrik
> On Nov 12, 2007 3:57 PM, Jonathan Vanasco wrote:
>
>>
>> On Nov 10, 2007, at 8:00 PM, Hendrik Van Belleghem wrote:
>> > To be honest, I haven't been able to get DBD::mysql compiled, nor
>> > Apache2::Request (properly - still some strange errors in the
>> > apache2 error log when I try to load it).
>> > I haven't fully tested the Apache2 (or mod_perl for that matter).
>> > I'm not building it with PHP but it does appear to come with
>> > leopard, as does mysql.
>> > Some threads discuss installing DBD::mysql on leopard (occasionally
>> > suggesting older versions of the module). Should I post some build
>> > output? :)
>>
>> I'm curious- Why have you opted for using the stock Apache2 install?
>>
>> By habit I always build from source and toss in /usr/local/apache2--
>> Apple doesn't really maintain those apps after initial release.
>>
>> I usually install libapreq through the c configure, not perl
>> wrapper. i've had better luck
>>
>> ./configure --with-expat=/usr/local/apr --with-apache2-apxs=/usr/
>> local/apache2/bin/apxs --enable-perl-glue
>> make
>> make test
>> make install
>>
>
>
>
> --
> Hendrik Van Belleghem
> Spine - The backbone for your website - http://spine.sf.net
>
>
--
View this message in context: http://www.nabble.com/Building-mod_perl2-on-Leopard-tp136826 85p19691760.html
Sent from the mod_perl - General mailing list archive at Nabble.com.
Re: Building mod_perl2 on Leopard
am 27.09.2008 21:13:07 von Fred Moyer
ScienceMan wrote:
> Was this ever resolved? I have tried the flags suggested, but still see upon
> doing a "make test" the following errors: (Have substituted [...] for my
> work directory path
Couple of questions:
1) Are you using the system perl or did you build your own?
2) Are you using the system apache or did you build your own?
It looks like you have your libapreq built for a different architecture
than that of your machine.
I would recommend building apache, perl, mod_perl, and libaqpreq from
source. My experience with Linux based binaries has been pretty good
but the system builds are a bit unusual on OS X - I've noticed that with
php as well as perl on OS X.
When I updated from Tiger to Leopard the system apache layout had
changed significantly. Also, when the next OS X update comes out, you
don't want it to break your application when it may use a new layout for
apache et al.
So my suggested installation process would be to:
1) Install httpd from source using prefix to set it within your user's
home directory
2) Install perl from source, prefix also
3) Install mod_perl from source also. Use /path/to/my/perl Makefile.PL
/path/to/my/apxs
4) Install libapreq from source, use --with-apache2-apxs option.
>
> cd t; make test
> perl -MTest::Harness -e 'runtests(@ARGV)' version.t cookie.t params.t
> parsers.t error.t util.t
> version....dyld: Library not loaded: /usr/lib/libapreq2.3.dylib
> Referenced from: [...]/libapreq2-2.08/library/t/.libs/version
> Reason: no suitable image found. Did find:
> [...]/libapreq2-2.08/library/.libs/libapreq2.3.dylib: mach-o, but wrong
> architecture
> /usr/lib/libapreq2.3.dylib: mach-o, but wrong architecture
> /usr/lib/libapreq2.3.dylib: mach-o, but wrong architecture
> version....dubious
>
> etc.
>
> The command "file library/.libs/libapreq2.3.6.0.dylib" returns:
>
> library/.libs/libapreq2.3.6.0.dylib: Mach-O 64-bit dynamically linked shared
> library x86_64
>
> This is on a Leopard-based Intel Mac under OS X 10.5.5.
>
> Advice would be welcome!
>
>
> Hendrik Van Belleghem wrote:
>> Actually, I'm still using the default Apache2.. I did built mod_perl2 from
>> scratch. One of my fellow perl mongers installed Leopard before I did and
>> mentioned that he couldn't find mod_perl2 on it.. I just assumed that it
>> wasn't there so I rebuilt :)
>>
>> Any ideas about the architecture signature in the original Leopard
>> mod_perl.so? And why some seem to have an earlier built?
>>
>> Hendrik
>> On Nov 12, 2007 3:57 PM, Jonathan Vanasco wrote:
>>
>>> On Nov 10, 2007, at 8:00 PM, Hendrik Van Belleghem wrote:
>>>> To be honest, I haven't been able to get DBD::mysql compiled, nor
>>>> Apache2::Request (properly - still some strange errors in the
>>>> apache2 error log when I try to load it).
>>>> I haven't fully tested the Apache2 (or mod_perl for that matter).
>>>> I'm not building it with PHP but it does appear to come with
>>>> leopard, as does mysql.
>>>> Some threads discuss installing DBD::mysql on leopard (occasionally
>>>> suggesting older versions of the module). Should I post some build
>>>> output? :)
>>> I'm curious- Why have you opted for using the stock Apache2 install?
>>>
>>> By habit I always build from source and toss in /usr/local/apache2--
>>> Apple doesn't really maintain those apps after initial release.
>>>
>>> I usually install libapreq through the c configure, not perl
>>> wrapper. i've had better luck
>>>
>>> ./configure --with-expat=/usr/local/apr --with-apache2-apxs=/usr/
>>> local/apache2/bin/apxs --enable-perl-glue
>>> make
>>> make test
>>> make install
>>>
>>
>>
>> --
>> Hendrik Van Belleghem
>> Spine - The backbone for your website - http://spine.sf.net
>>
>>
>
--
Red Hot Penguin Consulting LLC
mod_perl/PostgreSQL consulting and implementation
http://www.redhotpenguin.com/