[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble building goo-0_0140



Neel Krishnaswami <neelk@alum.mit.edu> writes:

> I'm having difficulties building the new goo-0140. What I did was
> 
> a) extract the tar file into /tmp/goo
> b) put the 6.1a Bohm gc into /tmp/goo/gc
> c) ran './configure; make' on Bohm

you don't need to do this.

> d) ran './configure; make' in /tmp/goo

this will configure and compile boehm gc as well.

> Everything seemed to run without any errors. But when I tried to look
> in /tmp/goo/bin, I didn't find a g2c executable. There was a g2c 
> executable in /tmp/goo/c/g2c.

you have to do 

  make install

the usual install place is /usr/local/bin, /usr/local/lib, etc.  you
can control the usr local part of things with --prefix when you run
./configure.  

> This g2c works when I am evaluating simple expressions, but when I 
> try to define a function, I get the following error:
> 
> goo/user 0<= (df fact (n) (if (= n 0) 1 (* n (fact (- n 1)))))
> /tmp/exp-5138-0.c:4: grt.h: No such file or directory
> /tmp/exp-5138-0.c:5: dlgrt.h: No such file or directory
> FAILED TO LOAD /tmp/exp-5138-0.so BECAUSE /tmp/exp-5138-0.so: cannot
> open shared object file: No such file or directory
> goo/user 0=> #{Gen cat ((x <seq>) => <seq>)}
> 
> I'm not sure whether this error is due to my having improperly set
> environment variables, or due to a screwed up build. 
> 
> -- 
> Neel Krishnaswami
> neelk@alum.mit.edu