Darwin ports

Hi there.
I have an MacBookPro and I want to install Darwin ports.
I downloaded & installed MacPorts-1.7.0.pkg and now I don't know what to do.

I tried:

 # port -d selfupdate
....
error 1
Command output: checking build system type... i686-apple-darwin9.7.0
checking host system type... i686-apple-darwin9.7.0
checking target system type... i686-apple-darwin9.7.0
checking MacPorts version... 1.7.1
checking for sw_vers... sw_vers
checking Mac OS X version... 10.5.7
checking for gcc... no
checking for cc... no
checking for cl.exe... no

as I understood I need gcc or another C++ compiler.
Where can I get gcc for mac?

thanks

the build tools are on the os x install dvd...

thanx DukeNuke, I installed Application DVD, but still get the same messge

Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command "cd /opt/local/var/macports/sources/rsync.macports.org/release/base && ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 && make && make install" returned error 1
Command output: checking build system type... i686-apple-darwin9.7.0
checking host system type... i686-apple-darwin9.7.0
checking target system type... i686-apple-darwin9.7.0
checking MacPorts version... 1.7.1
checking for sw_vers... sw_vers
checking Mac OS X version... 10.5.7
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/opt/local/var/macports/sources/rsync.macports.org/release/base':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

as you can read in the outputs last line: "no compiler in $path". you need to fix this. check you path settings and make sure your gcc can be found in your path!

well I don't understand what's wrong.
I add to $PATH

# export PATH = $PATH:/usr/local/bin:/usr/local/sbin

and still same error ... cannot find gcc.

I installed Rudix, which has a lot of tools for UNIX. I installed mc, and when I wanted to run:

$ mc
dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
  Referenced from: /usr/local/bin/mc
  Reason: image not found
Trace/BPT trap

do I need to add something to my $PATH?

thanks

By "build tools" I'm assuming "Developer Tools".

When you say "Application DVD" I'm assuming Application DVD.

So to be clear, the question is, did you install the developer tools (Xcode)? That is the "build tools" you are looking for. They are located on the first install disk in a folder called "Optional..." Xcode.

Unless you have Xcode installed it is impossible to use MacPorts or to compile anything from source. I would make sure that you have that installed. I had no problems with MacPorts after installing Xcode on Mac OS 10.5.7

As Holden said, first install Xcode then install macports. Also, when you do a macports selfupdate, you have to use sudo.

blake [ ~/scratch ]$ sudo port selfupdate
Password:

MacPorts base version 1.710 installed
Downloaded MacPorts base version 1.800

Installing new MacPorts release in /opt/local as root:admin - TCL-PACKAGE in /Library/Tcl; Permissions: 0755

blake [ ~/scratch ]$