Installing MediaWiki as a learning experience

Joined
Apr 1, 2008
Messages
11
Reaction score
0
Points
1
Hi all,

Maybe it's a little odd, but I'm trying to install MediaWiki as a learning experience on my G4 running 10.4.11. I want to build things from source. There's no real good reason for doing this. I just want to.

I downloaded the source for Apache httpd 2.2.9, mysql-5.0.67, and php-5.2.6, as well as MediaWiki 1.13.0. I want to configure them to all install in their own directory, so that I don't accidentally overwrite things. I haven't done this before, and I'm not quite sure where to start. I tried compiling everything using --prefix=/wiki/{package name} --exec-prefix=/wiki/{package name}, and this all worked find, but when I tried to run httpd, I got

Code:
[Don's G4:/wiki/apache2] dlavelle% bin/httpd 
dyld: Library not loaded: /wiki/lib/libaprutil-1.0.dylib
  Referenced from: /wiki/apache2/bin/httpd
  Reason: image not found
Trace/BPT trap

Obviously, I did or didn't do something.

So, I deleted my /wiki directory and decided to start again. Any advice?

Thanks!
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
Did you look for that .dylib file within your /wiki folder structure. Use the find command at the terminal prompt after you recompile it all.

find /wiki -name "libaprutil*" -print​

Perhaps since you are doing a custom install, you need to let the compiler or a config file know where the library is that Apache is looking for.
 
OP
M
Joined
Apr 1, 2008
Messages
11
Reaction score
0
Points
1
Thanks so much for you reply. I ran the search you suggested, then I did the following. It looked like it was just looking in the wrong place for the libraries.:Oops:

Code:
[Don's G4:/wiki/apache2] dlavelle% bin/httpd
dyld: Library not loaded: /wiki/lib/libaprutil-1.0.dylib
  Referenced from: /wiki/apache2/bin/httpd
  Reason: image not found
Trace/BPT trap
[Don's G4:/wiki/apache2] dlavelle% find /wiki -name "libaprutil*" -print
/wiki/apache2/lib/libaprutil-1.0.3.0.dylib
/wiki/apache2/lib/libaprutil-1.0.dylib
/wiki/apache2/lib/libaprutil-1.a
/wiki/apache2/lib/libaprutil-1.dylib
/wiki/apache2/lib/libaprutil-1.la
/wiki/httpd-2.2.9/srclib/apr-util/.libs/libaprutil-1.0.3.0.dylib
/wiki/httpd-2.2.9/srclib/apr-util/.libs/libaprutil-1.0.dylib
/wiki/httpd-2.2.9/srclib/apr-util/.libs/libaprutil-1.a
/wiki/httpd-2.2.9/srclib/apr-util/.libs/libaprutil-1.dylib
/wiki/httpd-2.2.9/srclib/apr-util/.libs/libaprutil-1.la
/wiki/httpd-2.2.9/srclib/apr-util/.libs/libaprutil-1.lai
/wiki/httpd-2.2.9/srclib/apr-util/libaprutil-1.la
/wiki/httpd-2.2.9/srclib/apr-util/libaprutil.dsp
/wiki/httpd-2.2.9/srclib/apr-util/libaprutil.rc
[Don's G4:/wiki/apache2] dlavelle% cp -r /wiki/apache2/lib/ /wiki/lib/
[Don's G4:/wiki/apache2] dlavelle% bin/httpd
httpd: Could not open configuration file /wiki/etc/httpd.conf: No such file or directory

So now I'm getting apache errors, but those are much easier to resolve. Thanks for the nudge in the right direction! I'll post again if either A) I get it working, or B) get stuck again.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top