[gambit-list] Running gambit program

Marc Feeley feeley at iro.umontreal.ca
Tue Mar 19 14:29:11 EDT 2013


On 2013-03-19, at 1:30 PM, Steve Graham <jsgrahamus at yahoo.com> wrote:

> I think this is a link problem:
> 
> steve at steve-Satellite-L555D ~/Desktop $ which gsi
> /usr/bin/gsi
> 
> steve at steve-Satellite-L555D ~/Desktop $ ls -al /usr/bin/gsi
> -rwxrwxrwx 1 root root 45 Feb 20 13:20 /usr/bin/gsi
> 
> steve at steve-Satellite-L555D ~/Desktop $ ls -al /usr/src/gambit/gsi/gsi
> -rwxr-xr-x 1 root root 5320182 Mar 19 11:05 /usr/src/gambit/gsi/gsi
> 
> steve at steve-Satellite-L555D ~/Desktop $ cat test.scm
> (display (+ 1 2))
> (display "\n")
> (exit)
> 
> steve at steve-Satellite-L555D ~/Desktop $ /usr/src/gambit/gsi/gsi test.scm
> 3
> 
> steve at steve-Satellite-L555D ~/Desktop $ 
> 
> 
> Sorry for this.

I would like to understand what went wrong.  Previously you said that you built Gambit in a conventional way:

On 2013-03-19, at 1:18 PM, Steve Graham <jsgrahamus at yahoo.com> wrote:

> Sorry, got ahead of myself.  Went ahead and executed the following:
> 
> 
> git clone https://github.com/feeley/gambit.git
> 
> (Downloaded it to my home directory and moved it to /usr/src)
> 
>  cd gambit
>  sudo ./configure --enable-single-host
>  sudo make bootstrap
>  sudo make bootclean
>  sudo make
>  sudo make check
>  sudo make install

However, you later said that gsi was in /usr/bin/gsi .  This is very strange because building Gambit conventionally will install gsi in /usr/local/Gambit-C/bin/gsi , so how come it ended up in /usr/bin/gsi?  And why did it not run properly?  I know you fixed your problem, but it would be worthwhile spending some time to understand what the problem is so that I can fix the makefiles if they are at fault, for the benefit of others.

Marc




More information about the Gambit-list mailing list