在Ubuntu Mate上安装STk Scheme解释器 [英] Installing the STk Scheme interpreter on Ubuntu Mate

查看:55
本文介绍了在Ubuntu Mate上安装STk Scheme解释器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一种称为STk的Scheme编程语言的实现.那是伯克利在YouTube上发布的计算机科学视频课程中使用的一种.我也想在机器上安装它,以便我可以完全按照他们的课程进行(尽管我确实已经安装了MIT/GNU Scheme),但是他们(维护STk Scheme解释器的人)没有软件包版本我可以使用apt-get实用程序进行安装.因此,我去了他们的网站,并从

There is an implementation for the Scheme programming language called STk. That's the one used in computer science video courses published by Berkley on YouTube. I want to have it on my machine as well so that I can follow their courses exactly (although I do have MIT/GNU Scheme already installed), but they, the people who maintain the STk Scheme interpreter, don't have a package version that I could install using the apt-get utility. So, I went to their website and downloaded the file STk-4.0.1.tar.gz from here. Unpacked it to /usr/local/src (I changed the ownership of the directory using the command sudo chown $USER /usr/local/src. Cded into the directory. Unpacked the tarball using this command tar -xzvf STk-4.0.1.tar.gz. Cded into the newly created directory. And now I'm trying to build the application by running the configure script:

$ ./configure
creating cache ./config.cache
checking for ranlib... ranlib
Using 'gcc' compiler
Using '-O2' compilation options
Assumming OS is LINUX
checking for gcc... gcc
checking whether the C compiler (gcc   ) works... yes
checking whether the C compiler (gcc   ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for POSIXized ISC... no
checking how to run the C preprocessor... gcc -E
checking for X... libraries , headers 
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking fd_set and sys/select... yes
Multiple precision library: libgmp
Hash tables support: yes
Posix support: yes
STklos support: yes
Socket support: yes
Regexp support: yes
Process support: yes
Html support: yes
Base64 support: yes
Locale support: yes
Pixmap Images support: yes
JPEG Images support: yes
Determining options for dynamic loading for LINUX
     Linux: no dynamic loading method chosen

not updating unwritable cache ./config.cache
creating ./config.status
creating Makefile
creating Utils/STk.spec
**** Configuring Src directory
creating cache ./config.cache
checking how to run the C preprocessor... gcc -E
checking for unistd.h... yes
checking for limits.h... yes
checking for sigaction... yes
checking for select... yes
checking for dlopen in -ldl... yes
checking for socket in -lsocket... no
checking for t_accept in -lnsl... no
checking for ANSI C header files... yes
checking for pid_t... yes
checking fd_set and sys/select... yes
not updating unwritable cache ./config.cache
creating ./config.status
creating Makefile
**** Configuring Extensions directory
creating cache ./config.cache
checking how to run the C preprocessor... gcc -E
checking for unistd.h... yes
checking for limits.h... yes
checking for sigaction... yes
not updating unwritable cache ./config.cache
creating ./config.status
creating Makefile
creating stk-genmake
**** Configuring Stack directory
creating cache ./config.cache
checking for gcc... gcc
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
ln: failed to create symbolic link 'libstack.c': File exists
Stack library configuration
         Machine type:  UNKNOWN_ARCH
    Low level support: 
not updating unwritable cache ./config.cache
creating ./config.status
creating libstack.h
creating Makefile
**** Configuring Tcl directory
creating cache ./config.cache
checking for ranlib... ranlib
checking whether cross-compiling... no
checking for getcwd... yes
checking for opendir... yes
checking for strerror... yes
checking for strstr... yes
checking for strtol... yes
checking for tmpnam... yes
checking for waitpid... yes
checking for strerror... (cached) yes
checking for getwd... yes
checking for wait3... yes
checking for uname... yes
checking for sin... no
checking for -lieee... yes
checking dirent.h... yes
checking how to run the C preprocessor... gcc -E
checking for errno.h... yes
checking for float.h... yes
checking for limits.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for sys/wait.h... yes
checking for unistd.h... yes
checking fd_set and sys/select... yes
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for tm_zone in struct tm... yes
checking tm_tzadj in struct tm... no
checking tm_gmtoff in struct tm... yes
checking timezone variable... yes
checking proper strstr implementation... yes
checking for strtoul... yes
checking for strtod... yes
checking for strtod... (cached) yes
checking for Solaris strtod bug... ok
checking for ANSI C header files... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for opendir... (cached) yes
checking sys_errlist... yes
checking union wait... yes
checking matherr support... yes
checking for vfork... yes
checking vfork/signal bug... ok
checking for strncasecmp... yes
checking for BSDgettimeofday... no
checking for gettimeofday... yes
checking for gettimeofday declaration... present
checking for -linet... no
checking for net/errno.h... no
checking for connect... yes
checking for gethostbyname... yes
checking system version (for dynamic loading)... ./configure: 1: ./configure: Syntax error: Unterminated quoted string
**** Configuring Tk directory
creating cache ./config.cache
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for unistd.h... yes
checking for limits.h... yes
checking stdlib.h... yes
checking fd_set and sys/select... yes
checking whether cross-compiling... no
checking for ANSI C header files... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for X... libraries , headers 
checking for X11 header files... checking for -lXbsd... no
checking for connect... yes
checking for gethostbyname... yes
checking for sin... no
checking for -lieee... yes
checking for memmove... yes
checking whether char is unsigned... no
checking for strtod... yes
checking for Solaris 2.4 strtod bug... ok
updating cache ./config.cache
creating ./config.status
creating Makefile


SUMMARY
*******
   Your system is  LINUX
   C compiler is: gcc
   Compilation options: -O2
   Dynamic loading enabled: no
   X11 libraries directory:
   X11 headers directory:

   You have chosen the following options
        Multiple precision library:      libgmp
        Hash tables support:             yes
        Posix support:                   yes
        STklos support:                  yes
        Socket support:                  yes
        Regexp support:                  yes
        Process support:                 yes
        Html support:                    yes
        Pixmap Images support:           yes
        Jpeg Images support:             yes
        Base64 support:                  yes
        Locale support:                  yes

If this is correct, you can just type 'make' now at your shell prompt.
Otherwise, rerun configure with proper options (see the README file for
a description of STk configure options.)

现在,我需要使用make实用程序来编译应用程序,但是我不能.这是我得到的错误:

Now, I need to use the make utility to compile the application, but I can't. This is the error I get:

$ make
make Tcl
make[1]: Entering directory '/usr/local/src/STk-4.0.1/Tcl'
make[1]: *** No rule to make target 'unix'.  Stop.
make[1]: Leaving directory '/usr/local/src/STk-4.0.1/Tcl'
Makefile:81: recipe for target 'tcl-dir' failed
make: *** [tcl-dir] Error 2

我可能做错了事.

推荐答案

我面对并解决了这个问题.这是因为Tcl目录中的./configure失败.

I faced and solved this problem. It is because of the ./configure failure at Tcl directory.

cd Tcl
bash ./configure
cd ..
make
sudo make install

按照上述步骤操作,即可安装STk.

Follow the steps above and you can install STk.

请注意,ubuntu的sh不是猛击,破折号.有时由于不兼容而导致Shell脚本执行失败.

Please be careful, ubuntu's sh is not bash, dash. It sometimes fails shell script execution because of some incompatibilities.

这篇关于在Ubuntu Mate上安装STk Scheme解释器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆