On Fri, 24 Jun 2005, Erik Veenstra wrote: >> I'm having some luck with rubyscript2exe, but I'm running >> into problems getting the other stuff in the directory. For >> instance, I'm trying to bundle sqlite functionality. >> >> joe@ubuntu:~/test $ ls >> >> libsqlite3.so rubyscript2exe.rb test.db test.rb >> >> joe@ubuntu:~/test $ ruby rubyscript2exe.rb test.rb > > A couple if issues: > > * Have you tried to run the application directly? I mean, > without being wrapped by RubyScript2Exe? It won't work if you > rely on the local libsqlite3.so. It will work if > libsqlite3.so is located on the library search path as well. > That's a Linux issue: Linux doesn't append the local > directory, nor the directory in which the application is > located, to $LD_LIBRARY_PATH. Windows does something like > that, Linux doesn't. > > * If libsqlite3.so is located on the library search path, it > will be embedded by RubyScript2Exe automaticly, without > specifying it in one of the RUBYSCRIPT2EXE_* pragmas. > > * You are listing libsqlite3.so in RUBYSCRIPT2EXE_LIB. Why? It > isn't a Ruby library, but a shared object. Shared objects > have to be specified in RUBYSCRIPT2EXE_DLLS or > RUBYSCRIPT2EXE_BIN, unless the share object is detected and > embedded automaticly. > > * The pragmas are used to specify not-detected files that have > to be embedded in the generated executable. These pragmas > don't affect the scanning phase of RubyScript2Exe. > >> Why can't it find libsqlite3.so? > > It's not on the library search path. > >> Anyways, anyone have any advice on how to properly package >> applications so I can avoid having to install anything >> outside the application directory? > > $ export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${pwd}" > $ ruby rubyscript2exe.rb test.rb > > Or install SQLite properly... > > gegroet, > Erik V. - http://www.erikveen.dds.nl/ > > -a -- =============================================================================== | email :: ara [dot] t [dot] howard [at] noaa [dot] gov | phone :: 303.497.6469 | My religion is very simple. My religion is kindness. | --Tenzin Gyatso ===============================================================================