execlp
Hi, I am trying to see if there is a way to determine if a program is in the path (i.e. a bit like "which"), returning a #t or #f answer. I was looking execl and execlp. The documentation for execl says: > Executes the file named by path as a new process image what is path ? I'm guessing that that should be "filename". While playing around, I notice that (execlp "ls") produces a core dump. My question is then, *is* there a way to determine if a string is executable? (And if so, how? :-) Thanks, Paul.
guile-cairo 1.9.91 released
Hi hackers, I am pleased to announce that Guile-Cairo 1.9.91 has been released. It may be obtained at: http://download.savannah.gnu.org/releases/guile-cairo/guile-cairo-1.9.91.tar.gz What is Guile-Cairo --- Guile-Cairo is a binding between Guile Scheme and the Cairo graphics library. See http://www.gnu.org/software/guile/ and http://cairographics.org/ for more information. What's new -- * Moved to a new home on Savannah: http://www.non-gnu.org/guile-cairo/. The git repository is now properly hosted there, instead of on my http server; see http://www.non-gnu.org/guile-cairo/dev/ for details. Happy hacking, Andy -- http://wingolog.org/
Guile-gnome
Hello, Where is guile-gnome located hosted these days? Is there one for current guile? thanks, ariel
Re: Guile-gnome
Hello old friend! On Tue 22 Nov 2011 20:37, Ariel Rios writes: > Where is guile-gnome located hosted these days? http://gnu.org/s/guile-gnome/ You'll need to use g-wrap and guile-gnome from git, but it does work with Guile 2.0. Peace, Andy -- http://wingolog.org/
Re: Guile-gnome
Hello, So after battling to compile g-wrap (I needed a macro in gettext) I have bee able to install guile-gnome but I am getting: [ariel@~/src/guile-gnome-platform/gtk/examples/tutorial]$ guile-gnome-2 -l hello.scm ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /home/ariel/src/guile-gnome-platform/gtk/examples/tutorial/hello.scm ;;; WARNING: compilation of /home/ariel/src/guile-gnome-platform/gtk/examples/tutorial/hello.scm failed: ;;; ERROR: no code for module (gnome gtk) My prefix is /usr/local/ ariel 2011/11/22 Andy Wingo : > Hello old friend! > > On Tue 22 Nov 2011 20:37, Ariel Rios writes: > >> Where is guile-gnome located hosted these days? > > http://gnu.org/s/guile-gnome/ > > You'll need to use g-wrap and guile-gnome from git, but it does work > with Guile 2.0. > > Peace, > > Andy > -- > http://wingolog.org/ > >
Re: Guile-gnome
-[ Tue, Nov 22, 2011 at 05:34:00PM -0600, Ariel Rios ] > Hello, > > So after battling to compile g-wrap (I needed a macro in gettext) I > have bee able to install guile-gnome but I am getting: > > [ariel@~/src/guile-gnome-platform/gtk/examples/tutorial]$ > guile-gnome-2 -l hello.scm > ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 > ;;; or pass the --no-auto-compile argument to disable. > ;;; compiling > /home/ariel/src/guile-gnome-platform/gtk/examples/tutorial/hello.scm > ;;; WARNING: compilation of > /home/ariel/src/guile-gnome-platform/gtk/examples/tutorial/hello.scm > failed: > ;;; ERROR: no code for module (gnome gtk) > > My prefix is /usr/local/ And what is your %load-path under guile-gnome-2? Maybe you need to make some adjustments with GUILE_LOAD_PATH?
Re: Guile-gnome
I guess I was tired and didn't look that I needed guile-cairo and some other stuff. I've got it running now. Surprises coming. ariel 2011/11/22 : > -[ Tue, Nov 22, 2011 at 05:34:00PM -0600, Ariel Rios ] >> Hello, >> >> So after battling to compile g-wrap (I needed a macro in gettext) I >> have bee able to install guile-gnome but I am getting: >> >> [ariel@~/src/guile-gnome-platform/gtk/examples/tutorial]$ >> guile-gnome-2 -l hello.scm >> ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 >> ;;; or pass the --no-auto-compile argument to disable. >> ;;; compiling >> /home/ariel/src/guile-gnome-platform/gtk/examples/tutorial/hello.scm >> ;;; WARNING: compilation of >> /home/ariel/src/guile-gnome-platform/gtk/examples/tutorial/hello.scm >> failed: >> ;;; ERROR: no code for module (gnome gtk) >> >> My prefix is /usr/local/ > > And what is your %load-path under guile-gnome-2? > Maybe you need to make some adjustments with GUILE_LOAD_PATH? > >
Re: execlp
I think there's a bug. (execlp "ls" "") will access. Since the second parameter is optional, scm_execlp doesn't handle exec_argv unbounded situation. On Wed, Nov 23, 2011 at 12:06 AM, Paul Emsley wrote: > > Hi, > > I am trying to see if there is a way to determine if a program is in the > path (i.e. a bit like "which"), returning a #t or #f answer. I was looking > execl and execlp. > > The documentation for execl says: > > > Executes the file named by path as a new process image > > what is path ? I'm guessing that that should be "filename". > > While playing around, I notice that > > (execlp "ls") > > produces a core dump. > > My question is then, *is* there a way to determine if a string is > executable? (And if so, how? :-) > > Thanks, > > Paul. > > > > >
Re: execlp
Well, I noticed your second question. ;-) The common method to determine a executable file is stat:perms, you may check it out in the manual for details. On Wed, Nov 23, 2011 at 1:47 PM, Nala Ginrut wrote: > I think there's a bug. > (execlp "ls" "") will access. > Since the second parameter is optional, scm_execlp doesn't handle > exec_argv unbounded situation. > > > On Wed, Nov 23, 2011 at 12:06 AM, Paul Emsley > wrote: > >> >> Hi, >> >> I am trying to see if there is a way to determine if a program is in the >> path (i.e. a bit like "which"), returning a #t or #f answer. I was looking >> execl and execlp. >> >> The documentation for execl says: >> >> > Executes the file named by path as a new process image >> >> what is path ? I'm guessing that that should be "filename". >> >> While playing around, I notice that >> >> (execlp "ls") >> >> produces a core dump. >> >> My question is then, *is* there a way to determine if a string is >> executable? (And if so, how? :-) >> >> Thanks, >> >> Paul. >> >> >> >> >> >