Click to See Complete Forum and Search --> : DarwinPorts on OSX (Anybody know of this?)
vaaaska
10-05-2005, 03:43 PM
Agh, I've installed them...but I can't figure out how to do anything with it. I've signed up to the official DarwinPorts mailing list and for whatever reason it simply won't take my notes. So, I'm stuck trying to figure out just how I make Terminal (if that's what I'm supposed to use) make them go.
???
For what it's worth, I'm trying to setup a new shop server (Apache, etc) and when I use the DarwinPorts command:
port install Apache
I get:
-bash port: command not found
With their lousy, incomplete, guide I'm sunk.
Anybody? Help?
(Just in case, I'm running Tiger 10.4.2 - the latest)
goldbug
10-05-2005, 04:44 PM
find out where it installed the "port" command (/sw?)
sudo find / -name "port*"(look for something in a /bin/ directory or /sw or something.
Add that directory to the PATH environment variable in /etc/profile (sudo pico -w /etc/profile)
Relaunch terminal app and try it again. You might need to use it as root (via sudo), if it's installing stuff to system directories.
BTW... why do you need DarwinPorts to install Apache? Apache compiles just fine using the GCC that comes with Tiger (I know firsthand.) It's reaaaalllly easy to install via source in Tiger. (FWIW, my dev box runs Tiger, with Apache 2, latest PHP, MySQL, Postgres, etc... all built using the standard GCC4 that Tiger ships with in the dev tools package)
Regardless of how you get it installed...make sure you disable the binaries that come with the bundled version of Apache/Tiger; move or delete the htpasswd, htdigest, httpd, apachectl, phpize, etc... related stuff in /usr/bin, so you don't inadvertantly use the wrong versions.
vaaaska
10-05-2005, 05:02 PM
Thanks man. Alot!
Sometimes one just needs a nudge to figure out where things went wrong. I needed to do an 'export...' in order to install the port command. It's rolling now.
;)
Edit: Wow, this DarwinPorts stuff is insanely elegant. Wow.
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.