LINUX.ORG.RU

gentoo+emacs-cvs+slime+bscl


0

0

Добрый день. Что-то никак могу заставить работать сабж.
Установил:
[ebuild R ] dev-lisp/sbcl-1.0.14 USE="threads unicode -cobalt -doc -ldb -source" 0 kB
[ebuild R ] app-editors/emacs-cvs-23.0.90 USE="X alsa dbus gif gpm gtk jpeg png spell svg tiff toolkit-scroll-bars xft xpm -Xaw3d -gzip-el -hesiod -kerberos -m17n-lib -motif -sound -source" 0 kB
И из оверлея lisp установил:
[ebuild R ] dev-lisp/asdf-1.123 0 kB [1]
[ebuild R ] app-emacs/slime-2.0_p20081209-r2 USE="-doc" 0 kB [1]

Открываю емаксом файл *.lisp- все как надо- появился пункт в тулбаре slime.
M-x slime
И вижу ругань:

(progn (load "/usr/share/emacs/site-lisp/slime/swank-loader.lisp" :verbose t) (funcall (read-from-string "swank:start-server") "/tmp/slime.18300" :coding-system "iso-latin-1-unix"))

This is SBCL 1.0.14-gentoo, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>;.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
; loading system definition from
; /usr/share/common-lisp/systems/asdf-binary-locations.asd into
; #<PACKAGE "ASDF0">
; registering #<SYSTEM ASDF-BINARY-LOCATIONS {AEBD9E9}> as ASDF-BINARY-LOCATIONS
*
; loading #P"/usr/share/emacs/site-lisp/slime/swank-loader.lisp"
; loading system definition from /usr/share/common-lisp/systems/swank.asd into
; #<PACKAGE "ASDF0">
; registering #<SYSTEM SWANK {A9BCD51}> as SWANK
; loading system definition from
; /usr/lib/sbcl/sb-bsd-sockets/sb-bsd-sockets.asd into #<PACKAGE "ASDF0">

debugger invoked on a SIMPLE-ERROR in thread #<THREAD "initial thread" {A72C601}>:
type component without a name component in NATIVE-NAMESTRING: "lisp"

Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
0: [ABORT] Exit debugger, returning to top level.

(SB-IMPL::UNPARSE-NATIVE-UNIX-NAMESTRING
#<PATHNAME (with no namestring)
:HOST #<SB-IMPL::UNIX-HOST {9137B29}>
:DEVICE NIL
:DIRECTORY (:ABSOLUTE "usr" "lib64" "sbcl")
:NAME NIL
:TYPE "lisp"
:VERSION :NEWEST>
T)
0]

И соответсвенно не работает. Подскажите, пожалуйста, как с этим бороться.

anonymous

Re: gentoo+emacs-cvs+slime+bscl

~/.emacs покажи

Sectoid ★★★★★ ()

Re: gentoo+emacs-cvs+slime+bscl

Какой у вас в генте софт свежий...

$ rpm -qi sbcl
Name        : sbcl                         Relocations: (not relocatable)
Version     : 1.0.25                            Vendor: Fedora Project
Release     : 1.fc11                        Build Date: Tue 03 Feb 2009 03:46:15 PM CET
Install Date: Sun 08 Feb 2009 04:21:01 PM CET      Build Host: x86-1.fedora.phx.redhat.com
Group       : Development/Languages         Source RPM: sbcl-1.0.25-1.fc11.src.rpm
Size        : 90205991                         License: BSD
Signature   : (none)
Packager    : Fedora Project
URL         : http://sbcl.sourceforge.net/
Summary     : Steel Bank Common Lisp
Description :
Steel Bank Common Lisp (SBCL) is a Open Source development environment
for Common Lisp. It includes an integrated native compiler,
interpreter, and debugger.

mv ★★★★★ ()

Re: gentoo+emacs-cvs+slime+bscl

На сайте SLIME (http://common-lisp.net/project/slime/) пишут, что оно работает с emacs'ами 21 и 22. А у вас - 23.

По-видимому, проще всего будет поставить 22ой емакс.

GolemXIV ()

Re: gentoo+emacs-cvs+slime+bscl

На 23м нормально шурупит. SBCL обнови хотя бы до 1.0.19.

vasily_pupkin ★★★★★ ()

Re: gentoo+emacs-cvs+slime+bscl

Обновил до sbcl-1.0.25-r1

$ cat ~/.emacs
(setq inferior-lisp-program "/usr/bin/sbcl")
(add-to-list 'load-path "/usr/share/emacs/site-lisp/slime/")
(require 'slime)
(setq slime-net-coding-system 'utf-8-unix)
(slime-setup)


; loading system definition from
; /usr/share/common-lisp/systems/asdf-binary-locations.asd into
; #<PACKAGE "ASDF0">
; registering #<SYSTEM ASDF-BINARY-LOCATIONS {AE4EB79}> as ASDF-BINARY-LOCATIONS
* 
; loading #P"/usr/share/emacs/site-lisp/slime/swank-loader.lisp"
; loading system definition from /usr/share/common-lisp/systems/swank.asd into
; #<PACKAGE "ASDF0">
; registering #<SYSTEM SWANK {A93FCB1}> as SWANK
; loading system definition from
; /usr/lib/sbcl/sb-bsd-sockets/sb-bsd-sockets.asd into #<PACKAGE "ASDF0">

debugger invoked on a SB-INT:SIMPLE-FILE-ERROR in thread #<THREAD "initial thread" RUNNING {A8F9669}>:
  failed to find the TRUENAME of /usr/lib64/sbcl/: Нет такого файла или каталога

Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [ABORT] Exit debugger, returning to top level.

(SB-IMPL::SIMPLE-FILE-PERROR
 "failed to find the TRUENAME of ~A"
 #P"/usr/lib64/sbcl/"
 2)
0]

Не понятно, откуда lib64... 

$ gcc -v
Используются внутренние спецификации.
Целевая архитектура: i686-pc-linux-gnu
Параметры конфигурации: /var/tmp/portage/sys-devel/gcc-4.3.3/work/gcc-4.3.3/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.3.3 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.3 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.3/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.3/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --disable-fixed-point --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --enable-cld --disable-libgcj --with-arch=i686 --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.3 p1.0, pie-10.1.5'
Модель многопоточности: posix
gcc версия 4.3.3 (Gentoo 4.3.3 p1.0, pie-10.1.5) 

anonymous ()
Ответ на: Re: gentoo+emacs-cvs+slime+bscl от cvb

Re: gentoo+emacs-cvs+slime+bscl

установил sbcl из портаджей 1.0.19 - тоже самое.
Сам sbcl работает:
$ sbcl
This is SBCL 1.0.19-gentoo, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>;.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
; loading system definition from
; /usr/share/common-lisp/systems/asdf-binary-locations.asd into
; #<PACKAGE "ASDF0">
; registering #<SYSTEM ASDF-BINARY-LOCATIONS {AB007A9}> as ASDF-BINARY-LOCATIONS
*

anonymous ()
Ответ на: Re: gentoo+emacs-cvs+slime+bscl от anonymous

Re: gentoo+emacs-cvs+slime+bscl

незнаю даж что посоветовать, разве что самому собрать sbcl, пользовал emacs23 slime sbcl на куче разных систем и никогда косяков небыло, но у меня были либо бинарные дистры, либо сам собирал, попробуй сделать симлинк с /usr/lib64/sbcl/ на /usr/lib/sbcl

cvb ()
Ответ на: Re: gentoo+emacs-cvs+slime+bscl от cvb

Re: gentoo+emacs-cvs+slime+bscl

симлинк действительно помог) Спасибо.

anonymous ()

Re: gentoo+emacs-cvs+slime+bscl

Автору: на всякий случай (если еще не сделал):

emerge layman
layman -a lisp
echo "source /usr/portage/local/layman/make.conf" >> /etc/make.conf

и затем время от времени:

layman -S

И для лиспа в портеже будет свежий софт.

dmitry_vk ★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.