Re: editing gnuplot initialization file
On Mar 31, 2010, at 9:21 PM, Ryan Schmidt wrote: > "^abc" isn't a valid glob and shouldn't work (and doesn't): > > > $ cd $(port dir zlib) > $ find . -name ^P > $ find . -name P > $ find . -name P* > ./Portfile > > > "find" is case-sensitive with the -name option and case-insensitive with the > -iname option. > > > $ find . -name Portfile > ./Portfile > $ find . -name portfile > $ find . -iname portfile > ./Portfile All I can say is crap, and crap. I wanted to exclude certain files to go onto a http server, one that does not support any languages other than shoving html back out. So, if a link to say, file.php was hit, there is a chance the raw source would be served. They only wanted images and .htm and .html. Yes, there probably is a password or two in these files. I used ^foo and was relying on my idea of find being case-i. Thanks for pointing this out, now I have to go and hope they did not put the files up yet, and correct this. Then again, I was asked to do this, and just thought it safer, so if it blows up, I guess I could correct it then, gonna try and correct it ahead of time for them though. Thanks again for pointing this out. -- Scott * If you contact me off list replace talklists@ with scott@ * ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: editing gnuplot initialization file
On 2010-4-1 15:12 , Scott Haneda wrote: > On Mar 31, 2010, at 8:40 PM, Ryan Schmidt wrote: > >> Actually, "find" takes a glob pattern; regular expression syntax is >> different from glob syntax. > > Well, that is just plain weird, I never knew that. I have always fed it > regular expressions, the only thing that I ever really picked up on being > different was the case insensitive aspect, which I liked. I was pretty sure > there would be a way to over-ride the case-i aspects anyway. There are of course the -regex and -iregex primaries. - Josh ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: editing gnuplot initialization file
On Mar 31, 2010, at 23:12, Scott Haneda wrote: >>> If you know the name of the file you are looking for, a `sudo find >>> /opt/local -name "the-filename-pattern"` where "the-filename-pattern" can >>> be a regular expression, so to find all ini files, it would be "*.ini" or >>> just look for the exact filename "gnuplot.ini" ( `sudo find /opt/local >>> -name "gnuplot.ini"` ) >> >> Actually, "find" takes a glob pattern; regular expression syntax is >> different from glob syntax. > > Well, that is just plain weird, I never knew that. I have always fed it > regular expressions, the only thing that I ever really picked up on being > different was the case insensitive aspect, which I liked. I was pretty sure > there would be a way to over-ride the case-i aspects anyway. > > But I have fed it the usual ^abc and other basic expressions, and they always > seemed to work. I guess since dealing with file names is rather simple, I > never thought they were glob patterns. > > Then again, just today, I should have looked into it, as as basic OR regex > was not working, and I had to pile up a bunch of -name commands. > > Thanks for pointing that out, I wonder how many files I have passed to xargs, > or not passed to xargs, thinking I was using a full blown parser. "^abc" isn't a valid glob and shouldn't work (and doesn't): $ cd $(port dir zlib) $ find . -name ^P $ find . -name P $ find . -name P* ./Portfile "find" is case-sensitive with the -name option and case-insensitive with the -iname option. $ find . -name Portfile ./Portfile $ find . -name portfile $ find . -iname portfile ./Portfile ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: editing gnuplot initialization file
On Mar 31, 2010, at 8:40 PM, Ryan Schmidt wrote: > On Mar 31, 2010, at 22:34, Scott Haneda wrote: > >> On Mar 31, 2010, at 8:18 PM, Zachary Cordero wrote: >> >>> I'm a new to unix so sorry for the trivial question but I just used macport >>> to install gnuplot and I'd like to edit the gnuplot initialization file. >>> Where can I find it on my comp? I'm using Mac OS 10.5. >> >> Anything that MacPorts installed can be located with `port contents >> portname` on the command line. In your case, it would be `port contents >> gnuplot` I believe. That will list every file that MacPorts installed for >> that particular portfile. Substitute any port name you desire, as long as >> the port has been installed. > > True, but any file the user is expected to edit, such as a configuration > file, should not show up in "port contents". (If it does, it is a bug in the > port.) Sample configuration files, however, if there are any, would show up. Interesting, thank you for the clarification. >> If you know the name of the file you are looking for, a `sudo find >> /opt/local -name "the-filename-pattern"` where "the-filename-pattern" can be >> a regular expression, so to find all ini files, it would be "*.ini" or just >> look for the exact filename "gnuplot.ini" ( `sudo find /opt/local -name >> "gnuplot.ini"` ) > > Actually, "find" takes a glob pattern; regular expression syntax is different > from glob syntax. Well, that is just plain weird, I never knew that. I have always fed it regular expressions, the only thing that I ever really picked up on being different was the case insensitive aspect, which I liked. I was pretty sure there would be a way to over-ride the case-i aspects anyway. But I have fed it the usual ^abc and other basic expressions, and they always seemed to work. I guess since dealing with file names is rather simple, I never thought they were glob patterns. Then again, just today, I should have looked into it, as as basic OR regex was not working, and I had to pile up a bunch of -name commands. Thanks for pointing that out, I wonder how many files I have passed to xargs, or not passed to xargs, thinking I was using a full blown parser. -- Scott * If you contact me off list replace talklists@ with scott@ * ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: editing gnuplot initialization file
Then I guess you have to create them. On Mar 31, 2010, at 22:57, Zachary Cordero wrote: > Alright, so then where can I find the initialization file? The files > mentioned in the gnuplot manual are not in my home directory and I can't find > them in the port contents. Any suggestions? > > Thanks, > Zack > > On Wed, Mar 31, 2010 at 11:40 PM, Ryan Schmidt > wrote: > On Mar 31, 2010, at 22:34, Scott Haneda wrote: > > > On Mar 31, 2010, at 8:18 PM, Zachary Cordero wrote: > > > >> I'm a new to unix so sorry for the trivial question but I just used > >> macport to install gnuplot and I'd like to edit the gnuplot initialization > >> file. Where can I find it on my comp? I'm using Mac OS 10.5. > > > > Anything that MacPorts installed can be located with `port contents > > portname` on the command line. In your case, it would be `port contents > > gnuplot` I believe. That will list every file that MacPorts installed for > > that particular portfile. Substitute any port name you desire, as long as > > the port has been installed. > > True, but any file the user is expected to edit, such as a configuration > file, should not show up in "port contents". (If it does, it is a bug in the > port.) Sample configuration files, however, if there are any, would show up. > > > > If you know the name of the file you are looking for, a `sudo find > > /opt/local -name "the-filename-pattern"` where "the-filename-pattern" can > > be a regular expression, so to find all ini files, it would be "*.ini" or > > just look for the exact filename "gnuplot.ini" ( `sudo find /opt/local > > -name "gnuplot.ini"` ) > > Actually, "find" takes a glob pattern; regular expression syntax is different > from glob syntax. > > http://en.wikipedia.org/wiki/Glob_(programming) > > http://en.wikipedia.org/wiki/Regular_expression > > > ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: editing gnuplot initialization file
On Mar 31, 2010, at 22:34, Scott Haneda wrote: > On Mar 31, 2010, at 8:18 PM, Zachary Cordero wrote: > >> I'm a new to unix so sorry for the trivial question but I just used macport >> to install gnuplot and I'd like to edit the gnuplot initialization file. >> Where can I find it on my comp? I'm using Mac OS 10.5. > > Anything that MacPorts installed can be located with `port contents portname` > on the command line. In your case, it would be `port contents gnuplot` I > believe. That will list every file that MacPorts installed for that > particular portfile. Substitute any port name you desire, as long as the > port has been installed. True, but any file the user is expected to edit, such as a configuration file, should not show up in "port contents". (If it does, it is a bug in the port.) Sample configuration files, however, if there are any, would show up. > If you know the name of the file you are looking for, a `sudo find /opt/local > -name "the-filename-pattern"` where "the-filename-pattern" can be a regular > expression, so to find all ini files, it would be "*.ini" or just look for > the exact filename "gnuplot.ini" ( `sudo find /opt/local -name "gnuplot.ini"` > ) Actually, "find" takes a glob pattern; regular expression syntax is different from glob syntax. http://en.wikipedia.org/wiki/Glob_(programming) http://en.wikipedia.org/wiki/Regular_expression ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: editing gnuplot initialization file
On Mar 31, 2010, at 8:18 PM, Zachary Cordero wrote: > I'm a new to unix so sorry for the trivial question but I just used macport > to install gnuplot and I'd like to edit the gnuplot initialization file. > Where can I find it on my comp? I'm using Mac OS 10.5. Anything that MacPorts installed can be located with `port contents portname` on the command line. In your case, it would be `port contents gnuplot` I believe. That will list every file that MacPorts installed for that particular portfile. Substitute any port name you desire, as long as the port has been installed. If at install time gnuplot printed messages, perhaps explaining about the location of a config file, you can sometimes get to see them again with `port notes portname`. I just looked, and gnuplot does not have notes added to it yet. Looking at the portfile, it does appear that some files are in: /opt/local/share/doc/gnuplot and a pdf that may answer your questions at: /opt/local/share/doc/gnuplot/gnuplot.pd There is probably a README file or other instructions as well. Of course, there are also non ports based commands, like `locate` and `find`. If you know the name of the file you are looking for, a `sudo find /opt/local -name "the-filename-pattern"` where "the-filename-pattern" can be a regular expression, so to find all ini files, it would be "*.ini" or just look for the exact filename "gnuplot.ini" ( `sudo find /opt/local -name "gnuplot.ini"` ) I hope that helps. I have never installed gnuplot, so a lot of this is general application of MacPorts and other shell commands to your scenario. -- Scott * If you contact me off list replace talklists@ with scott@ * ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: editing gnuplot initialization file
On 2010-4-1 14:18 , Zachary Cordero wrote: > Hi all, > > I'm a new to unix so sorry for the trivial question but I just used > macport to install gnuplot and I'd like to edit the gnuplot > initialization file. Where can I find it on my comp? I'm using Mac OS > 10.5. See section 18 in the manual (/opt/local/share/doc/gnuplot/gnuplot.pdf). - Josh ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
editing gnuplot initialization file
Hi all, I'm a new to unix so sorry for the trivial question but I just used macport to install gnuplot and I'd like to edit the gnuplot initialization file. Where can I find it on my comp? I'm using Mac OS 10.5. Thanks, Zack ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
X11 bitmaps (was: fvwm - where's pager?? -- SOLVED)
On 2010-4-1 10:28 , Ryan Schmidt wrote: > > On Mar 31, 2010, at 16:39, Pau wrote: > >> The path for icons etc is also wrong: >> >> PixmapPath /usr/include/X11/pixmaps/ >> IconPath /usr/include/X11/bitmaps/ >> >> This is even worse, because these pixmaps and bitmaps do not exist in >> macports > > What should these paths be set to if these pixmaps and bitmaps don't exist? > > Better yet, where can we get the pixmaps and bitmaps / how can we install > them? One of these is provided by xbitmaps. Not sure where pixmaps should come from, as Apple's X11 doesn't seem to provide it either. - Josh ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: was: fvwm - where's pager?? -- SOLVED
On Mar 31, 2010, at 16:39, Pau wrote: > The path for icons etc is also wrong: > > PixmapPath /usr/include/X11/pixmaps/ > IconPath /usr/include/X11/bitmaps/ > > This is even worse, because these pixmaps and bitmaps do not exist in macports What should these paths be set to if these pixmaps and bitmaps don't exist? Better yet, where can we get the pixmaps and bitmaps / how can we install them? ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
was: fvwm - where's pager?? -- SOLVED
Hi, I figured out the problem. In the default fvwmrc file that's provided with the installation of fvwm in macports the paths are wrong. In this particular case, it should read: ModulePath /opt/local/bin/ instead of ModulePath /usr/lib/X11/fvwm The path for icons etc is also wrong: PixmapPath /usr/include/X11/pixmaps/ IconPath /usr/include/X11/bitmaps/ This is even worse, because these pixmaps and bitmaps do not exist in macports If some of the maintainers could at least fix the path for ModulePath, that would be great. There are many instances for examples of fvwmrc ... in all of the the path is wrong Cheers, Pau PS: Hurrah! ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: firefox-x11 & matplotlib
On Mar 31, 2010, at 2:57 PM, Pau wrote: > Also, regarding matplotlib, I would like to ask the same question. I > try to used macosx some five weeks ago and I had to install it by > resorting to that superpack but I would like to ask whether macports > has it now up and running. A colleague said that it is not working. Is > that right? I use py26-matplotlib with the qt4-mac backend and it works great. Note that I change my local matplotlibrc file in ~/.matplotlib to say: backend : Qt4Agg Cheers! Frank ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: firefox-x11 & matplotlib
On 2010-4-1 07:57 , Pau wrote: > Also, regarding matplotlib, I would like to ask the same question. I > try to used macosx some five weeks ago and I had to install it by > resorting to that superpack but I would like to ask whether macports > has it now up and running. A colleague said that it is not working. Is > that right? The python process actually crashes in Tk code during the install for me. Is that the problem you are seeing? - Josh ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: firefox-x11 & matplotlib
On Mar 31, 2010, at 15:57, Pau wrote: > Also, regarding matplotlib, I would like to ask the same question. I > try to used macosx some five weeks ago and I had to install it by > resorting to that superpack but I would like to ask whether macports > has it now up and running. A colleague said that it is not working. Is > that right? If you mean the py26-matplotlib port, the only ticket I see filed about it is: http://trac.macports.org/ticket/20666 It installs ok for me on Snow Leopard, but I have not tried to use it. Please try it out and if it doesn't work right, file a ticket. ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
firefox-x11 & matplotlib
Hello, sorry for the spamming... I have too many questions because I am in the process of migrating to macosx after many years of OpenBSD I have seen that firefox-x11 fails at building when getting to xulrunner, as in this ticket: http://trac.macports.org/ticket/21477 Six months ago jeremyhu said that "You will need to have some patience and let the upstream devs work on the problem" I was wondering whether there has been some progress or what the plans are. Also, regarding matplotlib, I would like to ask the same question. I try to used macosx some five weeks ago and I had to install it by resorting to that superpack but I would like to ask whether macports has it now up and running. A colleague said that it is not working. Is that right? Thanks, Pau ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: launching gnome fails
On Wed, Mar 31, 2010 at 01:37:19PM +0200, Pau wrote: > "There is a problem with the configuration server: > (/opt/local/libexec/gconf-sanity-check-2 exited with status 2)" > > And then > > "Could not connect to session bus: Not enough memory" > > and > > "Could not acuire name on session bus" Did you enable the dbus launchd items by running the following? sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-system.plist launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist (note that the first one must be run as root and the second one must *not*) Dan -- Dan R. K. Ports MIT CSAILhttp://drkp.net/ ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: fvwm - where's pager??
On 2010-3-31 17:38 , Pau wrote: > "locate" seems not to work. 'mdfind -name' is a reasonable approximation to locate. - Josh ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: launching gnome fails
I think I know what the problem is: gnome-desktop-suite gnome-platform-suite gnome-bindings-suite Password: ---> Computing dependencies for gnome-desktop-suite ---> Configuring libgweather Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libgweather/work/libgweather-2.26.2.1" && ./configure --prefix=/opt/local --disable-schemas-install --disable-glibtest --enable-python " returned error 1 Command output: checking for libintl.h... yes checking for ngettext in libc... no checking for bindtextdomain in -lintl... yes checking for ngettext in -lintl... yes checking for dgettext in -lintl... yes checking for bind_textdomain_codeset... yes checking for msgfmt... (cached) /opt/local/bin/msgfmt checking for dcgettext... yes checking if msgfmt accepts -c... yes checking for gmsgfmt... (cached) /opt/local/bin/msgfmt checking for xgettext... (cached) /opt/local/bin/xgettext checking for regexec... yes checking for struct tm.tm_gmtoff... yes checking for _NL_MEASUREMENT_MEASUREMENT... no checking for python version... 2.6 checking for python platform... darwin checking for python script directory... ${prefix}/lib/python2.6/site-packages checking for python extension module directory... ${exec_prefix}/lib/python2.6/site-packages checking for headers required to compile python extensions... found checking for PYGOBJECT... configure: error: Package requirements (pygobject-2.0) were not met: No package 'pygobject-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 PYGOBJECT_CFLAGS and PYGOBJECT_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: bug-buddy evolution-data-server libgweather libical gnome-desktop python25 libelf libgtop dasher at-spi libwnck xorg-libXres xorg-resourceproto empathy enchant aspell texinfo lzmautils hunspell gnome-panel librsvg libcroco libgsf gst-plugins-bad XviD dirac cppunit exempi faac mp4v2 faad2 gst-plugins-base liboil libtheora jack libsndfile flac libdca libexif libmms libmodplug libmpcdec neon schroedinger soundtouch gst-plugins-good aalib libcaca libcdio libcddb libdv libshout2 speex taglib wavpack py25-gtk py25-cairo py25-numpy py25-nose py25-setuptools py25-gobject telepathy-farsight farsight2 gst-plugins-farsight libnice py25-gst-python telepathy-glib telepathy-haze pidgin libao telepathy-mission-control libtelepathy eog epiphany py25-gnome py25-orbit webkit-gtk icu evince libspectre nautilus libunique poppler openjpeg poppler-data t1lib file-roller gcalctool gconf-editor gdm libxklavier xorg-libxkbfile gedit gtksourceview2 py25-pygtksourceview gnome-applets gnome-settings-daemon libgnomekbd xmodmap gucharmap gnome-backgrounds gnome-control-center gnome-games ggz-client-libs libggz gnome-python-desktop gnome-media gtksourceview gnuregex libgnomeprint libgnomecups libgnomeprintui totem-pl-parser guile libsdl_mixer libsdl smpeg gnome-mag gnome-netstatus gnome-sharp2 gtk-sharp2 mono libgdiplus gnome-speech gnome-system-monitor gtkmm cairomm libsigcxx2 glibmm pangomm gnome-terminal vte gnome-user-docs gnome-utils libgail-gnome libgtkhtml3 liboobs system-tools-backends p5-net-dbus p5-xml-twig seahorse gpgme gnupg libusb pth seahorse-plugins totem gst-ffmpeg gmake gst-plugins-ugly a52dec lame libdvdread libdvdcss libmad libmpeg2 xorg-libXv xorg-videoproto twolame x264 yasm xorg-libXxf86vm xorg-xf86vidmodeproto vino yelp xulrunner Error: Status 1 encountered during processing. Before reporting a bug, first run the command again with the -d flag to get complete output. So I did it... sudo port install -d gnome-desktop-suite gnome-platform-suite gnome-bindings-suite ---> Computing dependencies for gnome-desktop-suite ---> Configuring libgweather Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libgweather/work/libgweather-2.26.2.1" && ./configure --prefix=/opt/local --disable-schemas-install --disable-glibtest --enable-python " returned error 1 Command output: checking for libintl.h... yes checking for ngettext in libc... no checking for bindtextdomain in -lintl... yes checking for ngettext in -lintl... yes checking for dgettext in -lintl... yes checking for bind_textdomain_codeset... yes checking for msgfmt... (cached) /opt/local/bin/msgfmt checking for dcgettext... yes checking if msgfmt accepts -c... yes checking for gmsgfmt... (cached) /opt/local/bin/msgfmt checking for xgettext... (cached) /opt/local/bin/xgettext checking for regexec... yes checking for struct tm.tm_gmtoff... yes checking for _NL_MEASUREMENT_MEASUREMENT... no checking for python version... 2.6 checking for python platform... darwin c
launching gnome fails
Hello, after the problem with fvwm, I have now tried to install gnome. I installed the metapackage and everything ran smooth. Then I follow the indications here: https://trac.macports.org/wiki/GNOME But I get a window protesting: "There is a problem with the configuration server: (/opt/local/libexec/gconf-sanity-check-2 exited with status 2)" And then "Could not connect to session bus: Not enough memory" and "Could not acuire name on session bus" I have tried launching the dbus-launch gnome-session, but that makes X start (I am running full-screen) and after a second it closes. This is my script: gumby% cat ~/.xinitrc.d/90-gnome.sh #!/bin/sh # make the freedesktop menu entries work export XDG_DATA_DIRS=/opt/local/share export XDG_DATA_HOME=/opt/local/share export XDG_CONFIG_DIRS=/opt/local/etc/xdg # enable sound export ESPEAKER=localhost # use GNOME's window manager #exec quartz-wm & exec metacity & # start GNOME exec /opt/local/bin/gnome-session #exec /opt/local/bin/dbus-launch /opt/local/bin/gnome-session ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users