From: Marc Feeley <feeley@iro.umontreal.ca>
To: Steve Graham <jsgrahamus@yahoo.com>
Cc: Gambit List <Gambit-list@iro.umontreal.ca>
Sent: Tuesday, March 19, 2013 12:29 PM
Subject: Re: [gambit-list] Running gambit program


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

> I think this is a link problem:
>
> steve@steve-Satellite-L555D ~/Desktop $ which gsi
> /usr/bin/gsi
>
> steve@steve-Satellite-L555D ~/Desktop $ ls -al /usr/bin/gsi
> -rwxrwxrwx 1 root root 45 Feb 20 13:20 /usr/bin/gsi
>
> steve@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@steve-Satellite-L555D ~/Desktop $ cat test.scm
> (display (+ 1 2))
> (display "\n")
> (exit)
>
> steve@steve-Satellite-L555D ~/Desktop $ /usr/src/gambit/gsi/gsi test.scm
> 3
>
> steve@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@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

---

Normally I download it to ~/Desktop, move it to /usr/src and build from there.  Is there a better way to accomplish that.  I would be willing to run it again.  Probably be a good idea to start from a clean slate, too.

Steve