OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: diesel1 on August 12, 2004, 01:59:02 pm
-
Hello
I am running pdaxrom on C860, I have installed lots of software to SD, This works fine for days or weeks at a time. But sometimes after a reboot programs complain about missing dependencies, all files are still there but not seen. I can see them in the file manager.
Does anyone know a solution to this, without reinstalling everything?
I did a search but didn't get anything like this.
Simon.
-
I had the same problem (if I got it right what you said)
I got over this problem with a small script that I run every time I restart the system.
#!/bin/sh
echo -n "Recreating symlinks and setting permissions..."
for i in `ls /mnt/card/usr/lib/`; do ln -sf /mnt/card/usr/lib/$i /usr/lib/$i; done
for i in `ls /mnt/card/usr/local/lib/`; do ln -sf /mnt/card/usr/local/lib/$i /usr/local/lib/$i; done
for i in `ls /mnt/card/usr/X11R6/lib/`; do ln -sf /mnt/card/usr/X11R6/lib/$i /usr/X11R6/lib/$i; done
for i in `ls /mnt/card/usr/bin/`; do ln -sf /mnt/card/usr/bin/$i /usr/bin/$i; done
chmod a+w /tmp
echo " done."
Change the /mnt/card/ to /mnt/cf/ if you use CompactFlash card.
This is really only a patchwork, we should ask the developers what causes this error.
Zumi
-
I ran this but nothing changed, programs still complain about missing libraries.
Also the SD always says busy when unmounting on reboot.
MMMmmm...I think its time to reinstall............
Simon.
-
-f, --force remove existing destination files
So, it's not needed, works for me.
Zumi
-
Sorry, I edited the previous post....will not do it again.....promise!
I ran the script and it said it was doing its thing but when I tried gnumeric it complained about missing stuff (libglade). This is definitely on the SD card.
I am not sure which links to these libraries gnumeric looks for.
Simon.
-
You have to search for that lib file, find out where it is, and if it's not in the dir you see in the script you have to add it too. Reinstall rarely solves things in Linux.
-
Ok, I found the libglade stuff in its own folder, I will add this to the script.
I will run this script from rc.local.
Simon.
-
So, it's working now?
I hope I was able to help.
Zumi
-
Not quite there.
I looked around for the library files/links and found everything in place.
I then checked the PATH setting, it does not have the correct directories in it.
This must have been set correctly for a while, until something changed it.
I do not remember installing anything new since it was working last.
Which is the correct location to set the PATH variable on the pdaXrom?
Simon.
-
I don't know. I have a non-working-development-version ROM on my Zaurus now, so I can't help with that.
Zumi
-
I think it is ok to set it in /etc/profile.
Or maybe I should link into a directory already set in /etc/profile.
Thanks for the pointers.
Simon.
-
I did some more poking around and found dead links in /usr/lib, they are pointing to the same directory but they should be linking to /mnt/card/usr/local/lib (thankyou midnightcommander colour highlighting!).
Now I have to trawl through the failed links....argh!
There must be some reason for all these dead links, any ideas?
Thankyou,
Simon.
-
This is why I added --force too. To overwrite these links. I don't know why it doesn't work for you.
-
I checked out the second failed gnumeric dependency, libgnomeui-2.so.0, it is there!
Gnumeric says it doesn't exist!
It looks like something is seriously wrong somewhere.
Can I make ipkg do a reinstall on selected files?
I am only familiar with the gui ipk manager....time for some reading......YAWN!!!
Simon.
-
I need to do a ldconfig after a reboot to pick up libs on the sd card. Never did hunt down why, thought I'd just messed something up in my config. Might solve your problem?
-
Whooo Hoooo!
ldconfig fixed things right away.
Thankyou very much.
Simon.