March 18, 200818 yr Hi all, In -beta3 Tom has re-included gzip. In my go-script I install unrar: installpkg /boot/Customizations/unrar/unrar-3.7.5-i486-1.tgz But now I get a new error: root@NAS_Serup:~# unrar unrar: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory I guess I'm missing a file? Regards, Søren
March 18, 200818 yr I guess unrar is written in c++ Yes the c++ runtime library was omitted because it's over 800K in size by itself. If I may ask - what are you using unrar for??
March 18, 200818 yr You can install the C++ libraries by downloading the package from here http://packages.slackware.it/package.php?q=current/cxxlibs-6.0.8-i486-4
March 18, 200818 yr Good point WeeboTech - probably a better solution is for advanced users to install needed packages on-the-fly via the 'go' script. You also could put the library itself (libstdc++.so.6.0.3) on the Flash, say in a created directory called 'config/usr/lib', and then create a symlink to it via 'go' script in the /usr/lib directory, something like this: (cd /usr/lib; ln -s /boot/config/usr/lib/libstdc++.so.6.0.3 libstdc++.so.6) This way, the library only takes up space in RAM when it's loaded; though the application will load slower. Note: C++ can be a real pain if the run-time library is not compiled with the same compiler version as the application. For this reason you see many apps that statically link the run-time (so the needed library modules are included with the application image). Perhaps there's a version of unrar where this is the case.
March 18, 200818 yr > probably a better solution is for advanced users to install needed packages on-the-fly via the 'go' script. I concur. Another option is to extract the library to a directory on the flash Then when needed set an environment variable before running the application. export LD_LIBRARY_PATH=/boot/lib However this is not as clean as the symlink. When I need to do this with special libraries, I usually make a script that does it all then calls the application. (symlink is still cleaner, but sometimes I need to isolate libraries/programs). Here s a quick script that can called from the go script. It will install all packages in /boot/packages. Just drop them in that directory and reboot (or rerun the script) root@unraid:/boot/config/rc.local# more S10-installpkg #!/bin/bash for package in /boot/packages/*.tgz do echo "Installing $package" installpkg $package 2>&1 | logger -tinstallpkg -plocal7.info -i done One point to consider, is any packages installed will probably have man and usr doc files. These should be removed (if known) to save ram.
March 19, 200818 yr Author Thanks you two. I'll look into your suggestions. Tom, it is way faster to unpack large archives directly on the unraid server (where the data are placed), then on my laptop through a wireless g connection. Regards, Søren
March 19, 200818 yr > it is way faster to unpack large archives directly on the unraid server I agree, I have one share called pub (for public files) for all drives, manuals, source code archives, etc, etc. I wget all my files from the internet via telnet on the unraid server. then unzip/untar them there for the very same reason. (Although not having nfs is killing me).
Archived
This topic is now archived and is closed to further replies.