Mac Forums

Mac Forums (http://www.mac-forums.com/forums/)
-   OS X - Development and Darwin (http://www.mac-forums.com/forums/os-x-development-darwin/)
-   -   Installing MediaWiki as a learning experience (http://www.mac-forums.com/forums/os-x-development-darwin/121562-installing-mediawiki-learning-experience.html)

mysterd429 08-28-2008 09:00 PM

Installing MediaWiki as a learning experience
 
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!

xstep 08-29-2008 07:18 PM

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.

mysterd429 09-04-2008 09:36 PM

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.


All times are GMT -4. The time now is 11:06 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.