Ulli Horlacher | 8 Dec 2011 16:44
Picon
Favicon

[Jed-users-l] S-Lang load path?


What is the S-Lang load path and how do I set it?

The problem:

phlox:~ $HOME/sw/bin/jed -batch              
loading /home/beate/sw/jedlib-0.99-19/lib/site.slc
loading /home/beate/sw/jedlib-0.99-19/lib/os.sl
loading /home/beate/sw/jedlib-0.99-19/lib/menus.slc
loading /home/beate/sw/jedlib-0.99-19/lib/defaults.slc
loading /home/beate/sw/jedlib-0.99-19/lib/emacs.slc
loading /home/beate/sw/jedlib-0.99-19/lib/edt.slc
loading /home/beate/sw/jedlib-0.99-19/lib/regexp.slc
Unable to open require.  Check the value of the S-Lang load path.
/home/beate/sw/jedlib-0.99-19/lib/regexp.sl:6:<top-level>:Open failed
Traceback: evalfile
/home/beate/sw/jedlib-0.99-19/lib/defaults.sl:113:<top-level>:Open failed
Traceback: evalfile
/home/beate/sw/jedlib-0.99-19/lib/site.sl:3304:<top-level>:Open failed

In /home/beate/sw/jedlib-0.99-19/lib/regexp.sl line 6 there is:

require ("srchmisc");

But I have this file:

phlox:~ find $HOME/sw | grep srchmisc
/home/beate/sw/jedlib-0.99-19/lib/srchmisc.sl
/home/beate/sw/jedlib-0.99-19/lib/srchmisc.slc

(Continue reading)

Facundo Andrés Bianco | 8 Dec 2011 17:00
Favicon
Gravatar

Re: [Jed-users-l] S-Lang load path?

On Thu, Dec 8, 2011 at 12:44 PM, Ulli Horlacher
<framstag <at> rus.uni-stuttgart.de> wrote:
>
> What is the S-Lang load path and how do I set it?

http://mailman.jtan.com/pipermail/jed-users-l/2011-November/000284.html

Best,

--

-- 
Facundo Andrés Bianco
freenode / identica: vando
http://van.do
_______________________________________________
Jed-users-l mailing list
Jed-users-l <at> jtan.com
http://mailman.jtan.com/mailman/listinfo/jed-users-l
John E. Davis | 8 Dec 2011 23:40
Picon
Favicon

Re: [Jed-users-l] S-Lang load path?

Ulli Horlacher <framstag <at> rus.uni-stuttgart.de> wrote:
> What is the S-Lang load path and how do I set it?
[...]
> loading /home/beate/sw/jedlib-0.99-19/lib/regexp.slc
> Unable to open require.  Check the value of the S-Lang load path.

It looks like you may have an incomplete slang distribution.  You
should have require.sl installed.  What does

 jed -batch -quiet -f 'vmessage("%S",_slang_install_prefix)'

produce?  require.sl should be located in
${_slang_install_prefix}/share/slsh/ .

Thanks,
--John

_______________________________________________
Jed-users-l mailing list
Jed-users-l <at> jtan.com
http://mailman.jtan.com/mailman/listinfo/jed-users-l

Ulli Horlacher | 9 Dec 2011 00:12
Picon
Favicon

Re: [Jed-users-l] S-Lang load path?

On Thu 2011-12-08 (17:40), John E. Davis wrote:
> Ulli Horlacher <framstag <at> rus.uni-stuttgart.de> wrote:
> 
> > What is the S-Lang load path and how do I set it?
> [...]
> > loading /home/beate/sw/jedlib-0.99-19/lib/regexp.slc
> > Unable to open require.  Check the value of the S-Lang load path.
> 
> It looks like you may have an incomplete slang distribution.  You
> should have require.sl installed. 

You are right. On the target host require.sl is missing.

> What does
> 
>  jed -batch -quiet -f 'vmessage("%S",_slang_install_prefix)'
> 
> produce?  require.sl should be located in
> ${_slang_install_prefix}/share/slsh/ .

_slang_install_prefix (/sw/ubuntu-10.04/slang-2.2.4) is not there at the
target host. The jed binary has been compiled on another host and then
copied to the target host, where I have no root access. Therefore I cannot
create /sw/ubuntu-10.04/slang-2.2.4/share/slsh/

I tried to redefine _slang_install_prefix in defaults.sl but I get:

framstag <at> fex: jed -batch
loading /sw/ubuntu-10.04/jed-0.99-19/jed/lib/site.slc
loading /sw/ubuntu-10.04/jed-0.99-19/jed/lib/os.sl
(Continue reading)

John E. Davis | 9 Dec 2011 03:27
Picon
Favicon

Re: [Jed-users-l] S-Lang load path?

Ulli Horlacher <framstag <at> rus.uni-stuttgart.de> wrote:
> I tried to redefine _slang_install_prefix in defaults.sl but I get:
>
> framstag <at> fex: jed -batch
> loading /sw/ubuntu-10.04/jed-0.99-19/jed/lib/site.slc
> loading /sw/ubuntu-10.04/jed-0.99-19/jed/lib/os.sl
> loading /sw/ubuntu-10.04/jed-0.99-19/jed/lib/menus.slc
> loading /sw/ubuntu-10.04/jed-0.99-19/jed/lib/defaults.sl
> _slang_install_prefix is read-only
>
> Is there an other workaround?

In your defaults.sl, try adding something like:

   set_slang_load_path (get_slang_load_path ()
                        + path_get_delimiter ()
			+ "/path/to/require.sl");

Thanks,
--John
_______________________________________________
Jed-users-l mailing list
Jed-users-l <at> jtan.com
http://mailman.jtan.com/mailman/listinfo/jed-users-l

Ulli Horlacher | 9 Dec 2011 09:27
Picon
Favicon

Re: [Jed-users-l] S-Lang load path?

On Thu 2011-12-08 (21:27), John E. Davis wrote:

> In your defaults.sl, try adding something like:
> 
>    set_slang_load_path (get_slang_load_path ()
>                         + path_get_delimiter ()
> 			+ "/path/to/require.sl");

Error: String_Type + Char_Type is not possible

But with 

  set_slang_load_path(get_slang_load_path()+":"+JED_ROOT+"/lib/slsh");

it works (copied the missing slsh before)! Thanks for the hint!

--

-- 
Ullrich Horlacher              Server- und Arbeitsplatzsysteme
Rechenzentrum                  E-Mail: horlacher <at> rus.uni-stuttgart.de
Universitaet Stuttgart         Tel:    ++49-711-685-65868
Allmandring 30                 Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.rus.uni-stuttgart.de/
REF: <201112090227.pB92Rsp2025561 <at> aluche.mit.edu>
_______________________________________________
Jed-users-l mailing list
Jed-users-l <at> jtan.com
http://mailman.jtan.com/mailman/listinfo/jed-users-l


Gmane