Hello,
I am running a code that
- reads an input file
- runs for about 15-20 sec
- writes output files
- writes diagnostic output to the terminal (I am assuming all of it is
going to stdout)
The code cannot load a library. When I run the code from the shell, I
point to the libraries using the LD_LIBRARY_PATH. However, that is
not transferred to by sbcl setup (as seen by the posix-getenv)
This is my syntax (I had to obfuscate some details)
(setf *a* (sb-ext:run-program "code path" nil
:environment '("LD_LIBRARY_PATH" "local library path")
:pty t
:output nil
:wait nil))
#<SB-IMPL::PROCESS 20883 :RUNNING>
Doing
CL-USER> (read-line (process-pty *a*))
I get that the code does not find a library:
"code: error while loading shared libraries: libg2c.so.0: cannot open
shared object file: No such file or directory
"
NIL
Am I using the environment keyword correctly?
Thanks,
Mirko
|