Re: Installation issues, Leopard Quad G5, 1.6.0 DMG
On Mar 11, 2008, at 7:56 PM, Alex Zavatone wrote:
The better solution is to create a file called '.profile' in your home directory. In this file you specify additional directories that are to be scanned for executables and manual entries. The MacPorts installation fails to create this file, so you have to create it manually.
Awesome. Works like a charm on my other mac. Why doesn't the .DMG installer do this?
No "non compiler friendly" user is going to be able to get up and running without this information.
What has been written to the .profile file has little to do with compilation. This is a facility of the shell to make it easier for users to run commands. Instead of typing the full path you can type just the name of the executable you wish to run. If the operating system wouldn't have the same settings for directories like /bin/ or /usr/sbin/ then you would have to type /bin/ ls to get a directory listing and /usr/sbin/diskutil to run the command line version of Disk Utility.
Thanks to Adrian's help, I was able to complete the install of MacPorts. My goal in installing MacPorts was to get a ntop installed. Checking for installation instructions for ntop on macports.org wasn't helpful at all; I couldn't find any instructions. Luckily, back at the old darwinports.org there is a url for ntop, http://ntop/darwinports.org that actually contains installation instructions: cd /opt/local/bin/portslocation/dports/ntop % sudo port install ntop One problem here is that if /portslocation/dports/ntop doesn't exist, then you must create it, cd to it and then sudo. Even thou the instructions are clear, they should mention this to save newbies like me. Once the directories are created, sudo port install ntop works wonderfully, installing all sorts files - that is until it gets to libcap. Libcap can't be found in any of the following locations: ---> Fetching libpcap ---> Attempting to fetch libpcap-0.9.8.tar.gz from http://www.tcpdump.org/release/ ---> Attempting to fetch libpcap-0.9.8.tar.gz from http://svn.macports.org/repository/macports/distfiles/libpcap ---> Attempting to fetch libpcap-0.9.8.tar.gz from http://svn.macports.org/repository/macports/distfiles/general/ ---> Attempting to fetch libpcap-0.9.8.tar.gz from http://svn.macports.org/repository/macports/downloads/libpcap ---> Attempting to fetch libpcap-0.9.8.tar.gz from http://svn.macports.org/repository/macports/distfiles/libpcap ---> Attempting to fetch libpcap-0.9.8.tar.gz from http://svn.macports.org/repository/macports/distfiles/general/ ---> Attempting to fetch libpcap-0.9.8.tar.gz from http://svn.macports.org/repository/macports/downloads/libpcap Error: Target org.macports.fetch returned: fetch failed Since I it appears that libcap is required to build and install ntop, what should I do from here? Thanks in advance, - Alex Zavatone On Mar 11, 2008, at 3:06 PM, Adrian Nier wrote:
On Mar 11, 2008, at 7:56 PM, Alex Zavatone wrote:
The better solution is to create a file called '.profile' in your home directory. In this file you specify additional directories that are to be scanned for executables and manual entries. The MacPorts installation fails to create this file, so you have to create it manually.
Awesome. Works like a charm on my other mac. Why doesn't the .DMG installer do this?
No "non compiler friendly" user is going to be able to get up and running without this information.
What has been written to the .profile file has little to do with compilation. This is a facility of the shell to make it easier for users to run commands. Instead of typing the full path you can type just the name of the executable you wish to run.
If the operating system wouldn't have the same settings for directories like /bin/ or /usr/sbin/ then you would have to type / bin/ls to get a directory listing and /usr/sbin/diskutil to run the command line version of Disk Utility.
On 11 Mar, 2008, at 16:48, Alex Zavatone wrote:
My goal in installing MacPorts was to get a ntop installed. Checking for installation instructions for ntop on macports.org wasn't helpful at all; I couldn't find any instructions. Luckily, back at the old darwinports.org there is a url for ntop, http://ntop/darwinports.org that actually contains installation instructions:
Did you mean http://ntop.*.com? That site is not affiliated with MacPorts at all and has been a source of much bad information (you might notice I avoid even writing something that could be construed as a link to it). The place that you should have found information would be the [MacPorts guide][1], in section [3.1.8][2]. Where did you look instead? What would have guided you towards this location? (we want to be better at getting people there in the future). [1] http://guide.macports.org/ [2] http://guide.macports.org/#using.port.install
cd /opt/local/bin/portslocation/dports/ntop % sudo port install ntop
One problem here is that if /portslocation/dports/ntop doesn't exist, then you must create it, cd to it and then sudo. Even thou the instructions are clear, they should mention this to save newbies like me.
These instructions are wrong. It should not be necessary to do anything but "sudo port install ntop", as with any MacPorts port.
Once the directories are created, sudo port install ntop works wonderfully, installing all sorts files - that is until it gets to libcap. Libcap can't be found in any of the following locations: ---> Fetching libpcap ---> Attempting to fetch libpcap-0.9.8.tar.gz from http://www.tcpdump.org/release/ ...
It appears that tcpdump.org, the provider of libpcap, is currently inaccessible. If you can find libpcap-0.9.8.tar.gz elsewhere online, dropping it in /opt/local/var/macports/distfiles/libpcap will allow you to continue. Otherwise, you'll have to wait for the site to come back up. Regards, Chris
On Mar 11, 2008, at 4:16 PM, Chris Pickel wrote:
On 11 Mar, 2008, at 16:48, Alex Zavatone wrote:
My goal in installing MacPorts was to get a ntop installed. Checking for installation instructions for ntop on macports.org wasn't helpful at all; I couldn't find any instructions. Luckily, back at the old darwinports.org there is a url for ntop, http://ntop/darwinports.org that actually contains installation instructions:
Did you mean http://ntop.*.com? That site is not affiliated with MacPorts at all and has been a source of much bad information (you might notice I avoid even writing something that could be construed as a link to it).
Oops. My mistake. You are correct. http://ntop.thatOtherDomain.com/ .
The place that you should have found information would be the [MacPorts guide][1], in section [3.1.8][2]. Where did you look instead? What would have guided you towards this location? (we want to be better at getting people there in the future).
Since I first had to figure out how to install MacPorts on my macs, I opted for a .dmg. I then had to figure out that I needed xCode since the .dmg doesn't check to see if it is installed and I installed that. Then after installing it many many times with no luck, I finally found out how to join this list and ask a question, which Adrian kindly answered and I finished up editing the file that I thought the DMG would create, opened terminal and ran the self update. I then looked on http://www.macports.org for available ports and entered ntop in the entry field. I found a description of ntop but nothing to help me install it. I clicked on Downloads under Available Shortcuts and it didn't have ntop info so I resorted to that information that I found prowling around that other site. Originally, I was instructed from a nice user on Apple's OS X Server email list that I could install MacPorts and then I should visit ntop.*.com to get ntop. It actually had instructions in reverse text about 1 page down. So I tried them. I had no idea that port install was needed, or how it was used or why. Ignorance is bliss, right? Riiiight. And here we are.
[1] http://guide.macports.org/ [2] http://guide.macports.org/#using.port.install
Thanks so much. I'll be reading that in a bit.
cd /opt/local/bin/portslocation/dports/ntop % sudo port install ntop
One problem here is that if /portslocation/dports/ntop doesn't exist, then you must create it, cd to it and then sudo. Even thou the instructions are clear, they should mention this to save newbies like me.
These instructions are wrong. It should not be necessary to do anything but "sudo port install ntop", as with any MacPorts port.
Ahh, Ok. So changing the directory is not necessary. If the .dmg had properly set up my .profile file, the one key missing step, that part would have been a little less confusing to me. I had to create that on my own as per Adrian's help
Once the directories are created, sudo port install ntop works wonderfully, installing all sorts files - that is until it gets to libcap. Libcap can't be found in any of the following locations: ---> Fetching libpcap ---> Attempting to fetch libpcap-0.9.8.tar.gz from http://www.tcpdump.org/release/ ...
It appears that tcpdump.org, the provider of libpcap, is currently inaccessible. If you can find libpcap-0.9.8.tar.gz elsewhere online, dropping it in /opt/local/var/macports/distfiles/libpcap will allow you to continue. Otherwise, you'll have to wait for the site to come back up.
Almost. :] It's now waiting for a lock on a file. $ sudo port install ntop Waiting for lock on /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync .macports.org_release_ports_net_libpcap/work/.macports.libpcap.state The contents of that file is the following text: target: org.macports.main Thanks so much Chris. - Alex Zavatone
Regarding the lock on the file, I deleted that file and it Libcap compiled. Right afterwards, cgilib failed to build since the terminal didn't know what the command "O3" was. Details below. ---> Building cgilib with target {} Error: Target org.macports.build returned: shell command " cd "/opt/ local/var/macports/build/ _opt_local_var_macports_sources_rsync .macports.org_release_ports_www_cgilib/work/cgilib-0.5" && make CFLAGS="-O3 -fPIC -I." " returned error 2 Command output: O3 -fPIC -I. -c -o cgi.o cgi.c make: O3: Command not found make: [cgi.o] Error 127 (ignored) O3 -fPIC -I. -c -o cookies.o cookies.c make: O3: Command not found make: [cookies.o] Error 127 (ignored) ar rc libcgi.a cgi.o cookies.o ar: cgi.o: No such file or directory ar: cookies.o: No such file or directory make: *** [libcgi.a] Error 1 Error: The following dependencies failed to build: rrdtool cgilib libart_lgpl perl5.8 tcl Error: Status 1 encountered during processing. Alex-Zavatones-Fearsome-Power-Mac-G5-2:~ zav$
On 11 Mar, 2008, at 17:47, Alex Zavatone wrote:
I then looked on http://www.macports.org for available ports and entered ntop in the entry field. I found a description of ntop but nothing to help me install it. I clicked on Downloads under Available Shortcuts and it didn't have ntop info so I resorted to that information that I found prowling around that other site.
OK; the reason there isn't information for "installing ntop" is because all ports install in the same way. We can look into repeating that information on the ports' pages too.
Regarding the lock on the file, I deleted that file and it Libcap compiled.
Right afterwards, cgilib failed to build since the terminal didn't know what the command "O3" was. Details below.
---> Building cgilib with target {} Error: Target org.macports.build returned: shell command " cd "/opt/ local/var/macports/build/ _opt_local_var_macports_sources_rsync .macports.org_release_ports_www_cgilib/work/cgilib-0.5" && make CFLAGS="-O3 -fPIC -I." " returned error 2 Command output: O3 -fPIC -I. -c -o cgi.o cgi.c make: O3: Command not found make: [cgi.o] Error 127 (ignored) O3 -fPIC -I. -c -o cookies.o cookies.c make: O3: Command not found make: [cookies.o] Error 127 (ignored) ar rc libcgi.a cgi.o cookies.o ar: cgi.o: No such file or directory ar: cookies.o: No such file or directory make: *** [libcgi.a] Error 1 Error: The following dependencies failed to build: rrdtool cgilib libart_lgpl perl5.8 tcl Error: Status 1 encountered during processing.
I don't know about this; maybe the port's maintainer, markd, would be able to help. It looks like somehow $(CC) is not set but I don't know why that would happen. Regards, Chris
participants (3)
-
Adrian Nier
-
Alex Zavatone
-
Chris Pickel