Running chibi with installing and no support for modifying LD_LIBRARY_PATH

209 views
Skip to first unread message

cocoa

unread,
May 1, 2012, 2:08:30 PM5/1/12
to chibi-...@googlegroups.com
I want to use Chibi-Scheme to interpret CGI scripts running on a managed hosting web server. 

I built using the command:
make chibi-scheme-static SEXP_USE_DL=0

I do not make install, because I do not have root permissions, only ssh access.  The managed server seems to be running a version of Ubuntu Linux (or maybe Debian?), that does not support modification of the LD_LIBRARY_PATH environmental variable.

If I run using a command like:
./chibi-scheme-0.5.3/chibi-scheme-static

... I get the message:
ERROR: couldn't find file in module path "init-7.scm"

Please can anyone tell me whether there is a way to build Chibi-Scheme so that it is usable under the described circumstances? 
I guess that the Makefile could be modified to use relative search paths via -rpath, but I am not sure about how to accomplish this myself?

/Colin 

Alex Shinn

unread,
May 3, 2012, 11:14:20 AM5/3/12
to chibi-...@googlegroups.com
On Wed, May 2, 2012 at 3:08 AM, cocoa <coc...@gmail.com> wrote:
> I want to use Chibi-Scheme to interpret CGI scripts running on a managed
> hosting web server.
>
> I built using the command:
> make chibi-scheme-static SEXP_USE_DL=0
>
> I do not make install, because I do not have root permissions, only ssh
> access.  The managed server seems to be running a version of Ubuntu Linux
> (or maybe Debian?), that does not support modification of the
> LD_LIBRARY_PATH environmental variable.
>
> If I run using a command like:
> ./chibi-scheme-0.5.3/chibi-scheme-static
>
> ... I get the message:
> ERROR: couldn't find file in module path "init-7.scm"

You still need to install the init-7.scm in a directory
in the include path to run chibi-scheme-static. You
can do a local install with:

make PREFIX=$HOME/local install

Otherwise you need a custom executable which
will load an initial environment by some other
means.

The next release will also support building a static
executable with no external file dependencies.

--
Alex

John Cowan

unread,
May 3, 2012, 11:20:02 AM5/3/12
to chibi-...@googlegroups.com
Alex Shinn scripsit:

> The next release will also support building a static
> executable with no external file dependencies.

Coolness.

--
John Cowan co...@ccil.org http://www.ccil.org/~cowan
O beautiful for patriot's dream that sees beyond the years
Thine alabaster cities gleam undimmed by human tears!
America! America! God mend thine every flaw,
Confirm thy soul in self-control, thy liberty in law!
--one of the verses not usually taught in U.S. schools

cocoa

unread,
May 3, 2012, 1:11:13 PM5/3/12
to chibi-...@googlegroups.com


On Thursday, 3 May 2012 16:20:02 UTC+1, John Cowan wrote:
Alex Shinn scripsit:

> The next release will also support building a static
> executable with no external file dependencies.

Coolness.


Thanks Alex, that is excellent news! I'm looking forward to the next release! ;)

Jiyin Yiyong

unread,
Jan 10, 2013, 6:26:37 AM1/10/13
to chibi-...@googlegroups.com
Same error was given when I install chibi-scheme from Arch's AUR.
Is there any solution?

......
install doc/chibi-scheme.1 /tmp/yaourt-tmp-chen/aur-chibi-scheme/pkg/usr/share/man/man1/
install doc/chibi-ffi.1 /tmp/yaourt-tmp-chen/aur-chibi-scheme/pkg/usr/share/man/man1/
install doc/chibi-doc.1 /tmp/yaourt-tmp-chen/aur-chibi-scheme/pkg/usr/share/man/man1/
if type ldconfig >/dev/null 2>/dev/null; then ldconfig; fi
ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Permission denied
make: [install] Error 1 (ignored)
==> Tidying install...
  -> Purging unwanted files...
  -> Compressing man and info pages...
  -> Stripping unneeded symbols from binaries and libraries...
==> WARNING: Package contains reference to $pkgdir
==> Creating package...
  -> Generating .PKGINFO file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: chibi-scheme 0.5.3-1 (Thu Jan 10 19:14:26 CST 2013)

==> Continue installing chibi-scheme ? [Y/n]
==> [v]iew package contents [c]heck package with namcap
==> ---------------------------------------------------
==> y

loading packages...
resolving dependencies...
looking for inter-conflicts...

Targets (1): chibi-scheme-0.5.3-1

Total Installed Size:   1.44 MiB

Proceed with installation? [Y/n] y
(1/1) checking package integrity                                                                       [############################################################] 100%
(1/1) loading package files                                                                            [############################################################] 100%
(1/1) checking for file conflicts                                                                      [############################################################] 100%
(1/1) checking available disk space                                                                    [############################################################] 100%
(1/1) installing chibi-scheme                                                                          [############################################################] 100%
➤➤ chibi-scheme 
ERROR: couldn't find file in module path: "init-7.scm"


Alex Shinn

unread,
Jan 10, 2013, 7:50:52 AM1/10/13
to chibi-...@googlegroups.com
On Thu, Jan 10, 2013 at 8:26 PM, Jiyin Yiyong <jiyin...@gmail.com> wrote: 
➤➤ chibi-scheme 
ERROR: couldn't find file in module path: "init-7.scm"

This should just work, but I'm not familiar with Arch.
Is the file actually installed?

-- 
Alex

Alex Shinn

unread,
Jan 10, 2013, 8:00:22 AM1/10/13
to chibi-...@googlegroups.com
BTW, you can figure out the module path compiled into chibi with:

  strace chibi-scheme -q -p'(find-module-file"xyzzy")' 2>&1 | grep xyzzy

(substitute "sudo dtruss" for "strace" on OS X)

-- 
Alex

Reply all
Reply to author
Forward
0 new messages