Results 1 to 9 of 9

Thread: MIT-Scheme does not work, cannot compile either.

  1. #1
    Join Date
    Apr 2008
    Beans
    13

    [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....


    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..

    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....
    Last edited by thcommj; May 2nd, 2008 at 09:57 AM. Reason: new problem

  2. #2
    Join Date
    Apr 2007
    Beans
    14,781

    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

  3. #3
    Join Date
    Apr 2008
    Beans
    13

    Re: MIT-Scheme does not work, cannot compile either.

    Quote Originally Posted by LaRoza View Post
    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
    Yeah! I figured that out as well when waiting for reply. thanks anyway.

  4. #4
    Join Date
    Apr 2007
    Beans
    14,781

    Re: MIT-Scheme does not work, cannot compile either.

    Quote Originally Posted by thcommj View Post
    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

  5. #5
    Join Date
    Apr 2008
    Beans
    13

    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)

  6. #6
    Join Date
    Jan 2006
    Location
    Mountain View CA, USA
    Beans
    3
    Distro
    Ubuntu 8.04 Hardy Heron

    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.

  7. #7
    Join Date
    Apr 2008
    Beans
    13

    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...

  8. #8
    Join Date
    May 2007
    Location
    Ru
    Beans
    67
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: MIT-Scheme does not work, cannot compile either.

    Quote Originally Posted by cphmit View Post
    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!

  9. #9
    Join Date
    Jun 2008
    Beans
    1

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •