Author Topic: N00b Things: Library Paths, Etc...  (Read 3486 times)

chiark

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • http://www.chiark.com
N00b Things: Library Paths, Etc...
« on: February 08, 2006, 06:17:25 am »
I realise that pdaxrom is targeting experienced linux people as users, but unfortunately I am not one of 'em.

I've been struggling recently with a few things, such as library locations.  If I choose to install something to /mnt/user using the package manager, the library will not be found after a reboot.

Changing /etc/ld.so.conf to add the path /mnt/user/usr/lib/ and then running ldconfig sorts this out.

Should this path be added to the baseline pdaxrom config?

Other things that would be useful would be a way of identifying where the space in the root partition has "gone" - knowing what are core OS files and what can be changed/removed would be good, as I find myself running out of space on / occasionally.

Is it possible to install man or info for pdaXrom?  This would again help newbies such as myself...  

I know these are newbie things, but it would help the learning curve.

scheck.r

  • Sr. Member
  • ****
  • Posts: 320
    • View Profile
    • http://
N00b Things: Library Paths, Etc...
« Reply #1 on: February 08, 2006, 06:51:13 am »
For man, see development tools
SL-C1000 from PriceJapan(cheap and very fast shipping) with EA-70 power adapter, iRiver USB Host cable, PDAIR case, pentopia stylus, ultra clear screen-protector from shop.brando.com.hk only $3 for shipping worldwide
4GB Hitachi Microdrive, 1GB Kingston Elite Pro CF, 4GB Transcend 150x SD, Symbol Spectrum 4137 CF WiFi(low power)
PdaXrom pdaxii13 5.4.9 updated with Kkazakov13's feed. I owned a SL-6000L before

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
N00b Things: Library Paths, Etc...
« Reply #2 on: February 13, 2006, 09:11:12 am »
Quote
I've been struggling recently with a few things, such as library locations.  If I choose to install something to /mnt/user using the package manager, the library will not be found after a reboot.

Changing /etc/ld.so.conf to add the path /mnt/user/usr/lib/ and then running ldconfig sorts this out.

Should this path be added to the baseline pdaxrom config?

I don't think this problem is due to the library path per se. It's more likely that it's the generic problem of missing symlinks. In case you didn't know, when you install packages onto external storage (ie anything other than "/"), symlinks are created within the "/" which points to those files in external storage. Now for some reason (which I haven't figured out yet) when you reboot sometimes the symlinks go AWOL and hence your problem. And the wierd thing is that not all symlinks are affected. What I did to get around this was to force all symlinks to be recreated on bootup. Sure, this increases the startup time but it's not often that I have to reboot so it's a minor issue.


-- cheers
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

chiark

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • http://www.chiark.com
N00b Things: Library Paths, Etc...
« Reply #3 on: February 14, 2006, 11:49:04 am »
Thanks DesertRat, that would explain it!  You're absolutely right: the system worked until I rebooted, and the reboot seems to have killed the symlinks.

Sorry for the simple question, but how did you force symlinks to be recreated on boot?

jcabrer

  • Full Member
  • ***
  • Posts: 161
    • View Profile
N00b Things: Library Paths, Etc...
« Reply #4 on: February 14, 2006, 12:56:33 pm »
In case you didn't know, when you boot up, a background process begins restoring symlinks.  If you have loaded up your Z with lots of packages (lots of files), the process can take quite a while, during which time certain things wont work.  My strategy is to install most lib packages in /, that way they are always present.  In addition, any network type applications also go in / as opposed to on a CF card, since sometimes you may want GPS or WIFI in the CF slot.

Also, if you are not compiling stuff, don't put gcc headers and the other tools on your Z.  That's a lot of files.
Sharp SL-C3100 - pdaXrom Beta 3
Sharp SL-6000L - pdaXrom Beta 1

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
N00b Things: Library Paths, Etc...
« Reply #5 on: February 14, 2006, 01:29:08 pm »
Quote
Sorry for the simple question, but how did you force symlinks to be recreated on boot?
I placed this in my /etc/rc.d/init.d/pcmcia script:
Code: [Select]
ipkg-link mount /mnt/hdRun ipkg-link without any parameters to see some help.

-- cheers
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

silencer51

  • Full Member
  • ***
  • Posts: 172
    • View Profile
    • http://tchalikias.blogspot.com
N00b Things: Library Paths, Etc...
« Reply #6 on: February 14, 2006, 04:11:10 pm »
Hmm... I though all symlinks are automatically recreated on each boot (which is annoying for me, I have everything installed on /dev/hda3 and it takes about 10 minutes after a reboot for everything to work properly).

Thank god I don't reboot that often. :-)

Speaking of which, is there a way to disable ipkg-link's behaviour with linking-unlinking packages on reboot? I'm talking about packages on /dev/hda3 which is always present...
Zaurus SL-5500 with:
128MB CF Card                                    
128MB SD Card
Symbol WiFi CF Card (working, sorta... overheats and shuts down!)
OZ 3.5.4 & GPE

Zaurus SL-C3100 with:
pdaXrom 1.1.0beta3 & XFCE4, /dev/hda1 256MB swap, /dev/hda2 512MB ext3, /dev/hda3 3328MB FAT32 for stuff
D-Link DCF-660 WiFi CF Card
1GB SD Card
128MB SD Card
128MB CF Card (for flashing)
USB Host Cable

& a Sony VAIO PCG-C1XD Picturebook with accessories...

[img]http://img58.imageshack.us/img58/7319/usbar21mw.gif\" border=\"0\" class=\"linked-sig-image\" /]

chiark

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • http://www.chiark.com
N00b Things: Library Paths, Etc...
« Reply #7 on: February 15, 2006, 04:29:54 am »
Thanks again.  No, I didn't know that

I do have gcc headers installed...  I guess that's why it takes a while to recreate 'em.

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
N00b Things: Library Paths, Etc...
« Reply #8 on: February 15, 2006, 05:33:05 pm »
Quote
In case you didn't know, when you boot up, a background process begins restoring symlinks.
OK I found the two places where ipkg-link is called, one is where pcmcia is started and the other is for the SD card. Since all my apps are installed on the microdrive only the pcmcia part is relevant to me.

AFAICS ipkg-link is called from within a function that is related to the automounting of partitions controlled by /etc/pcmcia/ide.opts. But as I note in this thread ...

https://www.oesf.org/forums/index.php?showtopic=16560

... I can't get my ext3 partition to "automount", and hence ipkg-link will not run.


-- cheers
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
N00b Things: Library Paths, Etc...
« Reply #9 on: February 15, 2006, 07:28:31 pm »
Quote
Quote
In case you didn't know, when you boot up, a background process begins restoring symlinks.
OK I found the two places where ipkg-link is called, one is where pcmcia is started and the other is for the SD card. Since all my apps are installed on the microdrive only the pcmcia part is relevant to me.

AFAICS ipkg-link is called from within a function that is related to the automounting of partitions controlled by /etc/pcmcia/ide.opts. But as I note in this thread ...

https://www.oesf.org/forums/index.php?showtopic=16560

... I can't get my ext3 partition to "automount", and hence ipkg-link will not run.


-- cheers
[div align=\"right\"][a href=\"index.php?act=findpost&pid=114940\"][{POST_SNAPBACK}][/a][/div]

Perhaps just call it again in your own script that mounts the CF drive... can't hurt.
SL6000-L, RC12