NeillHog wrote:
> I have now managed to compile the program that I want to use on the slug and
> it appears to have compiled.
> When I try to start it, I get a message as follows
> # ./vcontrold-arm
> ./vcontrold-arm: error while loading shared libraries: libxml2.so.2: cannot
> open shared object file: No such file or directory
>
> The author of the program told me that I needed to have the header files for
> libxml2 installed.
>
>
......
> I have already done ipkg install libxml2 but I don't think that installed
> any header files.
>
Hi Neill,
I'm not a developer but I've had my share of this type of issue, so
here's a Hamfisted Hacker's guide to "lib not found"...
It looks like the program cannot find the libxml binary at runtime
rather than the headers at build time (which is when it would need the
header files). You have libxml2 installed (double check it installed
OK!) so either the file is there but not in the expected location or it
is a newer or older version of the library and your prog is being too
specific.
Unslung has some "nuances" that make it a little more "interesting" than
normal Linux.
The stock Linksys Linux firmware is not removed but "overlayed" with the
additional features that make it "unslung". This additional stuff is
generally under /opt with scripts modified to run the unslung version in
preference to the Linksys version of some code. This means that a file
could be in the main file structure or in the /opt structure.
The library libxml2.so.2 may be installed but your program just can't
find it, have a look around (check out the find command) or perhaps
libxml2.so or libxml2.so.3 is there but not libxml2.so.2 (making a
symlink works 4 times out of 5)
good luck,
regards,
Drew