我在一个 slackware 上,我已经成功安装了 common clozure lisp,但是在 shell 提示符下运行 ccl 时,我收到以下错误消息:
> /usr/local/bin/ccl64: line 81: /usr/local/bin//lx86cl64: No such file
> or directory
> bash-4.3# ccl64
> /usr/local/bin/ccl64: line 81: /usr/ccl/scripts/lx86cl64: No such file or directory
> bash-4.3# ./ccl64
> ./ccl64: line 81: /usr/ccl/scripts/lx86cl64: No such file or directory
> bash-4.3#
我按照说明将两个文件复制到
/usr/local/bin
从/usr/ccl/scripts/安装目录如下:
我的本地垃圾箱在下面:
bash-4.3# pwd
/usr/local/bin
bash-4.3# ls -l
total 8
-rwxr-xr-x 1 root root 1389 Mar 10 10:52 ccl
-rwxr-xr-x 1 root root 1734 Mar 10 10:52 ccl64
bash-4.3#
脚本安装目录如下:
bash-4.3# pwd
/usr/ccl/scripts
bash-4.3# ls -l c*
-rwxr-xr-x 1 root root 1399 Nov 6 2015 ccl
-rwxr-xr-x 1 root root 1744 Mar 6 22:28 ccl64
bash-4.3#
lx86cl 的位置如下:
bash-4.3# pwd
/usr/ccl
bash-4.3# ls -l lx*
-rwxr-xr-x 1 root root 182924 Mar 5 20:52 lx86cl
-rw-r--r-- 1 root root 18231312 Nov 6 2015 lx86cl.image
-rwxr-xr-x 1 root root 201168 Mar 5 20:52 lx86cl64
-rw-r--r-- 1 root root 24871152 Nov 6 2015 lx86cl64.image
bash-4.3#
我的 /usr/local/bin/ 中两个文件的配置修改行如下:
if [ -z "$CCL_DEFAULT_DIRECTORY" ]; then
CCL_DEFAULT_DIRECTORY=/usr/ccl/scipts
fi
CCL_DEFAULT_DIRECTORY="C:/cygwin$CCL_DEFAULT_DIRECTORY"
如果我把 /usr/ccl 而不是 /usr/ccl/scripts
if [ -z "$CCL_DEFAULT_DIRECTORY" ]; then
CCL_DEFAULT_DIRECTORY=/usr/ccl
fi
CCL_DEFAULT_DIRECTORY="C:/cygwin$CCL_DEFAULT_DIRECTORY"
bash-4.3# ccl
/usr/local/bin/ccl: line 48: /usr/ccl/scripts/lx86cl: No such file or directory
bash-4.3#
bash-4.3# echo $PATH
/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/share/texmf/bin