[NEW PROBLEM] MIT-Scheme does not work, compiled but won't install
Hi MIT-scheme doesn't seem to work for me on Ubuntu Hardy, like many others who have reported the same issue. So I tried to follow the instructions on http://www.gnu.org/software/mit-scheme/liarc-build.html to rebuild from the source but haven't been successful. the whole thing was done in a minute (it is supposed to take hours..)..
EDIT: I figured that it was because I didn't have build-essential installed...
NEW PROBLEM: Now I've compiled it, but it seems to have trouble installing....
Quote:
thcommj@thcommj-laptop:~/scheme/mit-scheme-c-20080130/src$ make install
/bin/bash ./mkinstalldirs /usr/local/lib/mit-scheme-c
mkdir /usr/local/lib/mit-scheme-c
mkdir: cannot create directory `/usr/local/lib/mit-scheme-c': Permission denied
make: *** [install-auxdir-top] Error 1
thcommj@thcommj-laptop:~/scheme/mit-scheme-c-20080130/src$ gksu make install
/bin/bash ./mkinstalldirs /usr/local/lib/mit-scheme-c
mkdir /usr/local/lib/mit-scheme-c
/usr/bin/install -c --preserve-timestamps -m 644 ./etc/optiondb.scm /usr/local/lib/mit-scheme-c/.
/usr/bin/install -c --preserve-timestamps -m 644 lib/*.com /usr/local/lib/mit-scheme-c/.
make: *** [install-auxdir-top] Error 1
m': No such file or directory
And I tried again..
Quote:
thcommj@thcommj-laptop:~/scheme/mit-scheme-c-20080130/src$ gksu make install
/bin/bash ./mkinstalldirs /usr/local/lib/mit-scheme-c
/usr/bin/install -c --preserve-timestamps -m 644 ./etc/optiondb.scm /usr/local/lib/mit-scheme-c/.
/usr/bin/install -c --preserve-timestamps -m 644 lib/*.com /usr/local/lib/mit-scheme-c/.
thcommj@thcommj-laptop:~/scheme/mit-scheme-c-20080130/src$
still doesn't work....
Re: MIT-Scheme does not work, cannot compile either.
I did install mit-scheme from source successfully.
Do you have build-essential?
Code:
sudo aptitude install build-essential
Delete everything but the archive and start over.
I used this package and instruction set: http://www.gnu.org/software/mit-scheme/liarc-build.html
Re: MIT-Scheme does not work, cannot compile either.
Quote:
Originally Posted by
LaRoza
Yeah! I figured that out as well when waiting for reply. thanks anyway.
Re: MIT-Scheme does not work, cannot compile either.
Quote:
Originally Posted by
thcommj
Yeah! I figured that out as well when waiting for reply. thanks anyway.
I hope you have time to kill. Do not watch it once it gets going ;)
Re: MIT-Scheme does not work, cannot compile either.
I left it to compile and went to sleep....and tried to make install this morning but it doesn't work....(description at the top)
Re: MIT-Scheme does not work, cannot compile either.
This is caused by new AppArmor support in the kernel, blocking MIT Scheme's attempt to grab low memory. A short-term workaround is to run
sudo sysctl -w vm.mmap_min_addr=0
To make the change permanent, edit that binding in /etc/sysctl.conf.
I'll modify the next release so that the Scheme memory allocator accounts for this. Meanwhile, the mit-scheme-c version works correctly since it uses a different memory allocator -- but you'll need at least 1GB of RAM to compile it.
Re: MIT-Scheme does not work, cannot compile either.
Thanks....but since my computer is a fairly low-class one, I guess I'll just wait till there's a version that works out-of-the-box... :)
Re: MIT-Scheme does not work, cannot compile either.
Quote:
Originally Posted by
cphmit
This is caused by new AppArmor support in the kernel, blocking MIT Scheme's attempt to grab low memory. A short-term workaround is to run
sudo sysctl -w vm.mmap_min_addr=0
To make the change permanent, edit that binding in /etc/sysctl.conf.
I'll modify the next release so that the Scheme memory allocator accounts for this. Meanwhile, the mit-scheme-c version works correctly since it uses a different memory allocator -- but you'll need at least 1GB of RAM to compile it.
Thanks a lot!
Re: MIT-Scheme does not work, cannot compile either.
This fix also addresses a problem encountered when running on 8.04 the version of Scheme that is distributed through MIT's Open CourseWare 6.001 class, located here:
http://ocw.mit.edu/OcwWeb/Electrical...nuxinstall.htm
When following the instructions on that page, the command to run scheme
Code:
scheme -large -band 6001.com -edit
produces the following error message in Ubuntu 8.04 :
Not enough memory for this configuration.
To work around this problem, run run the command suggested earlier in this thread before attempting to start scheme.
Code:
sudo sysctl -w vm.mmap_min_addr=0
Thanks to the others who suggested this. Hopefully this information will help others avoid some hassle following the instructions on MIT's site.