Please remember to use the "Reply To All" function in your email program when you reply to messages on this list, so that your reply goes to the list as well and not just to me. This way everyone can participate in the discussion. On May 3, 2007, at 10:35, Mervyn wrote:
I get this after installing Xcode. barcajax:~ barcajax$ port install wireshark Error: Unable to execute port: /opt/local/var/db/dports/build/ _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_ dports_net_wireshark/work/.darwinports.wireshark.state is not writable - check permission on port directory Appreciate your input.
You need to run "port install" (and other commands that modify your installation, like "port uninstall", "port sync", "port selfupdate") as root. Usually you'd do this by prefacing the command with "sudo" ("SuperUser DO"): $ sudo port install wireshark
Hi Ryan, As you kindly instructed, I ran the sudo port command with no success. barcajax:~ barcajax$ sudo port install wireshark Password: Error: Unable to execute port: invalid command name " configure.universal_args" What's the problem now? Merv On 5/4/07, Ryan Schmidt <ryandesign@macports.org> wrote:
Please remember to use the "Reply To All" function in your email program when you reply to messages on this list, so that your reply goes to the list as well and not just to me. This way everyone can participate in the discussion.
On May 3, 2007, at 10:35, Mervyn wrote:
I get this after installing Xcode. barcajax:~ barcajax$ port install wireshark Error: Unable to execute port: /opt/local/var/db/dports/build/ _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_ dports_net_wireshark/work/.darwinports.wireshark.state is not writable - check permission on port directory Appreciate your input.
You need to run "port install" (and other commands that modify your installation, like "port uninstall", "port sync", "port selfupdate") as root. Usually you'd do this by prefacing the command with "sudo" ("SuperUser DO"):
$ sudo port install wireshark
Hi Mervyn,
Error: Unable to execute port: invalid command name "configure.universal_args "
What's the problem now?
Your version of MacPorts is out of date. Run "sudo port selfupdate" and see how you go after that. Kind regards, Maun Suang -- Boey Maun Suang (Boey is my surname) Email: boeyms@macports.org
Hi Boey and Ryan, Thanks for your help guys. After following your tips, it seems that the installation of Wireshark is initiated. The problem is it seems that Macports is painfully slow. My DSL connection is a 10Mbps subscription but after leaving my Macbook on overnight, the Wireshark installation still hasn't completed. Is this normal? It does seem to be to me. Merv On 5/4/07, Boey Maun Suang <boeyms@macports.org> wrote:
Hi Mervyn,
Error: Unable to execute port: invalid command name "configure.universal_args "
What's the problem now?
Your version of MacPorts is out of date. Run "sudo port selfupdate" and see how you go after that.
Kind regards,
Maun Suang
-- Boey Maun Suang (Boey is my surname) Email: boeyms@macports.org
On May 4, 2007, at 6:22 PM, Mervyn wrote:
My DSL connection is a 10Mbps subscription but after leaving my Macbook on overnight, the Wireshark installation still hasn't completed. Is this normal? It does seem to be to me.
You might want to turn on debug mode to see what's happening. It does seem like it should work faster than that. Say, how do I get a 10 Mbit connection? -- Paul Beard words: http://paulbeard.org/wordpress pictures: http://www.flickr.com/photos/pdb206/ Are you trying to win an argument or solve a problem?
The installation is ongoing. How do I run debug without interrupting the installation? My ISP offers 10 meg for home users. Not vheap though ;p Merv On 5/5/07, paul beard <paulbeard@gmail.com> wrote:
On May 4, 2007, at 6:22 PM, Mervyn wrote:
My DSL connection is a 10Mbps subscription but after leaving my Macbook on overnight, the Wireshark installation still hasn't completed. Is this normal? It does seem to be to me.
You might want to turn on debug mode to see what's happening. It does seem like it should work faster than that. Say, how do I get a 10 Mbit connection? -- Paul Beard words: http://paulbeard.org/wordpress pictures: http://www.flickr.com/photos/pdb206/ Are you trying to win an argument or solve a problem?
On May 4, 2007, at 6:34 PM, Mervyn wrote:
The installation is ongoing. How do I run debug without interrupting the installation?
well, if it's taken this long with no result, I would kill it and re- run it with the -v and/or -d flags. -- Paul Beard words: http://paulbeard.org/wordpress pictures: http://www.flickr.com/photos/pdb206/ Are you trying to win an argument or solve a problem?
Hey Paul, I ran the installation with the -v switch. So far so good as the commandline keeps scrolling. As long as it does that, the installation is fine rite? Merv On 5/5/07, paul beard <paulbeard@gmail.com> wrote:
On May 4, 2007, at 6:34 PM, Mervyn wrote:
The installation is ongoing. How do I run debug without interrupting the installation?
well, if it's taken this long with no result, I would kill it and re-run it with the -v and/or -d flags. -- Paul Beard words: http://paulbeard.org/wordpress pictures: http://www.flickr.com/photos/pdb206/ Are you trying to win an argument or solve a problem?
Spoke too soon. I hit a brick wall. configure: error: *** You must have either have gettext support in your C library, or use the *** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html Warning: the following items did not execute (for glib2): com.apple.activate com.apple.configure com.apple.build com.apple.destroot com.apple.install Error: The following dependencies failed to build: glib2 gtk2 atk libpng zlib pango Xft2 fontconfig freetype xrender render cairo tiff jpeg libpcap openssl Error: Status 1 encountered during processing. What does the above mean? On 5/5/07, Mervyn <barcajax@gmail.com> wrote:
Hey Paul, I ran the installation with the -v switch. So far so good as the commandline keeps scrolling. As long as it does that, the installation is fine rite?
Merv
On 5/5/07, paul beard <paulbeard@gmail.com> wrote:
On May 4, 2007, at 6:34 PM, Mervyn wrote:
The installation is ongoing. How do I run debug without interrupting the installation?
well, if it's taken this long with no result, I would kill it and re-run it with the -v and/or -d flags. -- Paul Beard words: http://paulbeard.org/wordpress pictures: http://www.flickr.com/photos/pdb206/ Are you trying to win an argument or solve a problem?
On May 4, 2007, at 11:15 PM, Mervyn wrote:
Spoke too soon. I hit a brick wall. configure: error: *** You must have either have gettext support in your C library, or use the *** GNU gettext library. (http://www.gnu.org/software/gettext/ gettext.html
Warning: the following items did not execute (for glib2): com.apple.activate com.apple.configure com.apple.build com.apple.destroot com.apple.install Error: The following dependencies failed to build: glib2 gtk2 atk libpng zlib pango Xft2 fontconfig freetype xrender render cairo tiff jpeg libpcap openssl Error: Status 1 encountered during processing.
What does the above mean?
Not sure how you got this far but it does happen. My course would be to update my ports (port sync/port selfupdate). Some questions. Does your path have the /opt hierarchy in it? % echo $PATH /opt/local/libexec:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/ bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin What ports do you have installed? % port installed The following ports are currently installed: Xft2 @2.1.7_0 (active) aalib @1.4rc5_2 (active) aspell @0.60.5_0 (active) at-spi @1.18.1_0 (active) atk @1.18.0_0 (active) audiofile @0.2.6_0 (active) autoconf @2.61_0 (active) automake @1.10_0 (active) avahi @0.6.16_1 (active) bison @2.3_0 (active) bug-buddy @2.18.0_0 (active) bzip2 @1.0.4_1 (active) [....] Do you have gettext in there? Either, it might be worth installing it with -f (port -f install gettext). It should go quickly, since it has all of two dependencies, I think. If that works, try your other command again and let us know how you get on. -- Paul Beard words: http://paulbeard.org/wordpress pictures: http://www.flickr.com/photos/pdb206/ Are you trying to win an argument or solve a problem?
Someone else already suggested that my Macports needs updating but I've donte that already. Yes /opt exists. barcajax:~ barcajax$ echo $PATH /sw/bin:/sw/sbin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin Ports installed barcajax:~ barcajax$ port installed The following ports are currently installed: expat @2.0.0_1 gettext @0.16.1_0 libiconv @1.11_4+darwin_8 perl5.8 @5.8.8_0+darwin_8 (active) pkgconfig @0.21_0 (active) Gettext is already in there. Any other suggestions? On 5/5/07, paul beard <paulbeard@gmail.com> wrote:
On May 4, 2007, at 11:15 PM, Mervyn wrote:
Spoke too soon. I hit a brick wall. configure: error: *** You must have either have gettext support in your C library, or use the *** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
Warning: the following items did not execute (for glib2): com.apple.activate com.apple.configure com.apple.build com.apple.destroot com.apple.install Error: The following dependencies failed to build: glib2 gtk2 atk libpng zlib pango Xft2 fontconfig freetype xrender render cairo tiff jpeg libpcap openssl Error: Status 1 encountered during processing.
What does the above mean?
Not sure how you got this far but it does happen. My course would be to update my ports (port sync/port selfupdate). Some questions. Does your path have the /opt hierarchy in it?
% echo $PATH
/opt/local/libexec:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
What ports do you have installed?
% port installed The following ports are currently installed: Xft2 @2.1.7_0 (active) aalib @1.4rc5_2 (active) aspell @0.60.5_0 (active) at-spi @1.18.1_0 (active) atk @1.18.0_0 (active) audiofile @0.2.6_0 (active) autoconf @2.61_0 (active) automake @1.10_0 (active) avahi @0.6.16_1 (active) bison @2.3_0 (active) bug-buddy @2.18.0_0 (active) bzip2 @1.0.4_1 (active) [....]
Do you have gettext in there? Either, it might be worth installing it with -f (port -f install gettext). It should go quickly, since it has all of two dependencies, I think.
If that works, try your other command again and let us know how you get on.
-- Paul Beard words: http://paulbeard.org/wordpress pictures: http://www.flickr.com/photos/pdb206/ Are you trying to win an argument or solve a problem?
On May 5, 2007, at 01:54, Mervyn wrote:
Someone else already suggested that my Macports needs updating but I've donte that already. Yes /opt exists. barcajax:~ barcajax$ echo $PATH /sw/bin:/sw/sbin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/ bin:/usr/sbin:/usr/X11R6/bin Ports installed barcajax:~ barcajax$ port installed The following ports are currently installed: expat @2.0.0_1 gettext @0.16.1_0 libiconv @1.11_4+darwin_8 perl5.8 @5.8.8_0+darwin_8 (active) pkgconfig @0.21_0 (active) Gettext is already in there.
Any other suggestions?
Oof. Your path has the Fink paths (/sw/bin, /sw/sbin) listed first. Do you have Fink installed, and various software installed with Fink? If so, that may be a recipe as disaster. Possibly some parts of the Fink installation are now being used by MacPorts, which will lead to unpredictability as the MacPorts port authors have not tested with that configuration. Can you remove Fink or do you need it for something? Which port was it that was being built when that message about gettext was shown?
I was installing Wireshark. Is there any recommended method of removing Fink or do I just delete the Fink folder? On 5/5/07, Ryan Schmidt <ryandesign@macports.org> wrote:
On May 5, 2007, at 01:54, Mervyn wrote:
Someone else already suggested that my Macports needs updating but I've donte that already. Yes /opt exists. barcajax:~ barcajax$ echo $PATH /sw/bin:/sw/sbin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/ bin:/usr/sbin:/usr/X11R6/bin Ports installed barcajax:~ barcajax$ port installed The following ports are currently installed: expat @2.0.0_1 gettext @0.16.1_0 libiconv @1.11_4+darwin_8 perl5.8 @5.8.8_0+darwin_8 (active) pkgconfig @0.21_0 (active) Gettext is already in there.
Any other suggestions?
Oof. Your path has the Fink paths (/sw/bin, /sw/sbin) listed first. Do you have Fink installed, and various software installed with Fink? If so, that may be a recipe as disaster. Possibly some parts of the Fink installation are now being used by MacPorts, which will lead to unpredictability as the MacPorts port authors have not tested with that configuration. Can you remove Fink or do you need it for something?
Which port was it that was being built when that message about gettext was shown?
On May 5, 2007, at 12:33 AM, Mervyn wrote:
I was installing Wireshark. Is there any recommended method of removing Fink or do I just delete the Fink folder?
I didn't realize you still had fink installed. If you're done with it, by all means remove /sw. If you're still kicking the tires on mac-ports, you can just move it aside (to / sw.old) and/or fix your path so nothing goes looking in /sw. -- Paul Beard words: http://paulbeard.org/wordpress pictures: http://www.flickr.com/photos/pdb206/ Are you trying to win an argument or solve a problem?
I removed Fink by following the FAQ in their website. Fink links have been removed as seen below. barcajax:~ barcajax$ echo $PATH /opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin But there are still errors when running Macports. barcajax:~ barcajax$ sudo port install -v wireshark ---> Configuring fontconfig Error: Target com.apple.configure returned: configure failure: shell command " cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_graphics_fontconfig/work/fontconfig- 2.4.2" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man --with-add-fonts=/Library/Fonts,/Network/Library/Fonts,/System/Library/Fonts,/usr/X11R6/lib/X11/fonts,/opt/local/share/fonts " returned error 1 Command output: checking for random... yes checking for lrand48... yes checking for a usable iconv... no checking for freetype-config... /opt/local/bin/freetype-config checking for FT_Get_Next_Char... yes checking for FT_Get_BDF_Property... yes checking for FT_Get_PS_Font_Info... yes checking for FT_Has_PS_Glyph_Names... yes checking for FT_Get_X11_Font_Format... yes checking for FT_Bitmap_Size.y_ppem... yes checking expat.h usability... no checking expat.h presence... no checking for expat.h... no checking xmlparse.h usability... no checking xmlparse.h presence... no checking for xmlparse.h... no configure: WARNING: Cannot find usable expat library. Trying to use libxml2 as fallback. checking for pkg-config... /opt/local/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for LIBXML2... configure: error: Package requirements (libxml-2.0>= 2.6) were not met: No package 'libxml-2.0' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables LIBXML2_CFLAGS and LIBXML2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. Error: The following dependencies failed to build: gtk2 pango Xft2 fontconfig xrender render cairo tiff jpeg libpcap openssl Error: Status 1 encountered during processing. On 5/5/07, paul beard <paulbeard@gmail.com> wrote:
On May 5, 2007, at 12:33 AM, Mervyn wrote:
I was installing Wireshark. Is there any recommended method of removing Fink or do I just delete the Fink folder?
I didn't realize you still had fink installed. If you're done with it, by all means remove /sw. If you're still kicking the tires on mac-ports, you can just move it aside (to /sw.old) and/or fix your path so nothing goes looking in /sw.
-- Paul Beard words: http://paulbeard.org/wordpress pictures: http://www.flickr.com/photos/pdb206/ Are you trying to win an argument or solve a problem?
On May 5, 2007, at 23:51, Mervyn wrote:
I removed Fink by following the FAQ in their website. Fink links have been removed as seen below. barcajax:~ barcajax$ echo $PATH /opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
But there are still errors when running Macports. barcajax:~ barcajax$ sudo port install -v wireshark ---> Configuring fontconfig Error: Target com.apple.configure returned: configure failure: shell command " cd "/opt/local/var/db/dports/build/ _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_ dports_graphics_fontconfig/work/fontconfig- 2.4.2" && ./configure -- prefix=/opt/local --mandir=/opt/local/share/man --with-add-fonts=/ Library/Fonts,/Network/Library/Fonts,/System/Library/Fonts,/usr/ X11R6/lib/X11/fonts,/opt/local/share/fonts " returned error 1 Command output: checking for random... yes checking for lrand48... yes checking for a usable iconv... no checking for freetype-config... /opt/local/bin/freetype-config checking for FT_Get_Next_Char... yes checking for FT_Get_BDF_Property... yes checking for FT_Get_PS_Font_Info... yes checking for FT_Has_PS_Glyph_Names... yes checking for FT_Get_X11_Font_Format... yes checking for FT_Bitmap_Size.y_ppem... yes checking expat.h usability... no checking expat.h presence... no checking for expat.h... no checking xmlparse.h usability... no checking xmlparse.h presence... no checking for xmlparse.h... no configure: WARNING: Cannot find usable expat library. Trying to use libxml2 as fallback. checking for pkg-config... /opt/local/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for LIBXML2... configure: error: Package requirements (libxml-2.0 >= 2.6) were not met:
No package 'libxml-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
Alternatively, you may set the environment variables LIBXML2_CFLAGS and LIBXML2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
Error: The following dependencies failed to build: gtk2 pango Xft2 fontconfig xrender render cairo tiff jpeg libpcap openssl Error: Status 1 encountered during processing.
Ok, fontconfig says it can't find expat. But expat is definitely declared as a dependency of fontconfig (see "port deps fontconfig"). So the expat port should definitely be installed. Is it? Also, are using using the latest MacPorts, 1.4.3? I believe you are, since earlier in the thread we advised you to selfupdate which should have updated you to 1.4.3. After you removed Fink, did you rebuild all the ports you already installed with MacPorts? If not, I recommend doing that, since I can't say for certain that they were built correctly in the presence of Fink. Easiest might be to get the list of installed ports ("port installed") and for each one, just uninstall it ("sudo port -f uninstall <portname>"). Then install wireshark, which should reinstall all its dependencies.
Hi Mervyn, On 05/05/2007, at 16:54, Mervyn wrote:
The following ports are currently installed: expat @2.0.0_1 gettext @0.16.1_0 libiconv @1.11_4+darwin_8 perl5.8 @5.8.8_0+darwin_8 (active) pkgconfig @0.21_0 (active) Gettext is already in there.
It's true that gettext, expat and libiconv are installed, but they're not _activated_; what MacPorts allows multiple versions of a port to be installed but only one of them to be active at a time. This allows for, among other things, the ability to retain an older version as fallback, in which case you need only deactivate a newer version that you're having problems with and reactivating the older one. I use it for testing new and updated ports (at least when I remember) so I don't have to keep uninstalling and reinstalling. That's all by the by, though. In short, I don't know why expat, gettext and libiconv aren't active, but once you run "sudo port activate libiconv gettext expat", you should have fixed the current problem at least. Having two package systems installed at once is not a good idea unless you really know what you're doing, but I'm pretty sure in this case that the Fink install was causing the problems you saw. Kind regards, Maun Suang -- Boey Maun Suang (Boey is my surname) Email: boeyms@macports.org
participants (4)
-
Boey Maun Suang
-
Mervyn
-
paul beard
-
Ryan Schmidt