On 04/01/2014 08:40 PM, Durval Menezes wrote:
> Hi Gordan,
> On Tue, Apr 1, 2014 at 2:33 PM, Gordan Bobic <gordan...@gmail.com
> I don't understand why exactly you can't build the binaries yourself
> or add the missing DLLs to your distro.
> Oh my. I must be doing a very sorry job of explaining my situation...
> :-( please bear with me while I do it again (hopefully better this time):
> 1) I don't have an ARM machine capable of compiling anything: my only
> ARM machine is a Raspberry Pi where I only have OpenELEC installed, and
> OpenELEC runs partly from a R/O partition in an SD card, and part from
> a RAMDISK (for temporary files, etc). I can't install the toolchain in
> this environment, although I can install the zfs-fuse plus dynamic
> libraries to the RAMdisk and (setting LD_LIBRARY_PATH and PATH
> appropriately) run them from there, which should be more than
> appropriate for my testing purposes. I could install a full (or
> "fuller") Linux distro on it, perhaps RaspBIAN, so as to be able to
> compile ARM binaries there... but then I will get lynched by the family
> which wants to use it to watch movies and the like... :-)
> 2) My main machines (where I have disk space etc to install larger
> things) are all x86_64 machines; I understand I would have to install an
> ARM cross-toolchain (arm-gcc plus ARM toolchain plus ARM libraries etc
> etc) in order to compile things. According to this
>, the process doesn't seem
> too involved but is rather long and labor intensive, so it's something I
> would like to avoid doing for the time being (ie, just to test zfs-fuse).
> On RH/Fedora you would say something like: 'yum provides
> "*/libaio.so.1" and it would tell you what package provides it.
> No question. But again I don't have any ARM machine where I can run this
> (OpenELEC doesn't have yum nor any other package manager available... )
You can run a different distro in a chroot. Grab the RSEL6 tarball,
extract into a subdirectory called, e.g. /mnt/rsel, then do:
mount --bind /dev /mnt/rsel/dev
mount --bind /sys /mnt/rsel/sys
mount --bind /proc /mnt/rsel/proc
yum update redsleeve-release
yum groupinstall buildsys-build
and now you can buid whatever you need (possibly after installing other
dependencies). Or you an just use yum to find out what packages provide
the dlls you are missing, install them, then just grab the dlls
themselves from the chroot and put them into /usr/local/lib on your main
rootfs (make sure you add /usr/local/lib to your /etc/ld.so.conf or
ld.so.conf.d and run ldconfig.
Or you can try to build a more statically linked set of zfs-fuse binaries.