Solve the MIT-scheme dependency

Source: Internet
Author: User

Sudo apt-Get install Mit-Scheme

The following software packages have dependency that cannot be met:

Mit-scheme: Dependency: libltdl3 (> = 1.5.2-2), but cannot install it

Download a deb of libtdl3 from this website, install it, And then install Mit-scheme.

Mit-scheme is a teaching language used by computer program construction and interpretation. It is now a software officially maintained by GNU. Unfortunately, GNU only provides Binary packages for Debian, Ubuntu, MacOSX, and Windows. For other Linux and BSD releases, only the source code is provided. Therefore, if you do not use the four operating systems supported above, you can only compile from the source code in most cases.

This article is used to guide readers who compile and install Mit-scheme from the source code and hope to help Chinese users learn Scheme (Note: The ports directory of FreeBSD contains Mit-scheme, it is easy to install. It is not covered in this article ). This article referred to the MIT-scheme source package readme document, combined with the actual situation of the mit-scheme20080130 version and fedora8 to simplify the operation, we assume you:

1. Machines are x86 platforms

2. I don't know much about it, or I don't want to see the README file in the source code.

3. Install fedora to prepare the necessary development environment (this is generally not a problem)

4. Slave

5. The two packages are decompressed to/tmp, which forms the directory tree:/tmp/{bin, Lib, mit-scheme-c-20080130 }. This is not necessary, but for the convenience of narration. If you do not know how to do, just need to enter the directory that stores the download source package, respectively: tarzxvfmit-scheme-c-20080130.tar.gz-C/tmp

Tarzxvfmit-scheme-20080130-ix86-gnu-linux.tar.gz-C/tmp

First, we need to solve the problem of chicken and eggs: To compile Mit-scheme from the source code, you must already have a working Mit-scheme.

Are you kidding me? The compiled script needs to call scheme, and you compile this scheme to have a usable scheme...

Here we will solve this problem:

Go to the/tmp/mit-scheme-c-20080130/src/microcode directory of the source code and execute

#./Configure

# Make

In this way, we have produced a scheme execution file related to our own platform. Now we will replace it with the execution file in the binary package compiled by debiangnu/Linux: In the current release version, you may find multiple execution files under/tmp/bin/after decompression. MIT-scheme-native is the real file, others are the symbolic links of MIT-scheme-native (this may be to ensure forward compatibility );

Run # cp-F/tmp/mit-scheme-c-20080130/src/microcode/scheme/tmp/bin/MIT-scheme-native to replace.

Next, set the running environment of this scheme:

# Exportmitscheme_library_path = "/tmp/lib/MIT-Scheme"

# Exportpath = "$ path:/tmp/bin /"

Now, if you type scheme-no-init-file on the terminal, you will see the sheme interpreter. Enter (exit) at the => prompt and exit.

If the preceding steps are correct, you now have an environment for compiling Mit-scheme. Go to the/tmp/mit-scheme-c-20080130/SRC Source Code directory and make sure the variable mitscheme_library_path is/tmp/lib/MIT-scheme, and the path contains/tmp/bin /.

Next, execute in order

#./Setup. Sh

#./Configure

# Make # This step takes a little longer

# Makeinstall # Root identity required

Go to/tmp/mit-scheme-c-20080130/DOC and run the./configure, make, makeinstall (root identity required) Installation document.

If you like to call Mit-scheme with Emacs, you can go to/tmp/mit-scheme-c-20080130/etc/and copy xscheme. El to the loading path of Emacs.
# Cp-fpxscheme.el/usr/share/Emacs/Site-lisp/
Now, in Emacs, M-X, type load-library, press enter, and then type xscheme,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.