Author Topic: How To Install To /usr/local?  (Read 2860 times)

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
How To Install To /usr/local?
« on: February 12, 2005, 09:53:53 pm »
Hi all. I've got the following setup working undet OZ-OPIE 3.5.2

Code: [Select]
root@grond:/usr/local# grep mmcda /etc/fstab
/dev/mmcda1     /mnt/card       auto    defaults,sync,noauto,noatime,umask=000  0  0
/dev/mmcda2     /usr/local      auto    defaults,sync,noauto,noatime,umask=000  0  0
The first partition is formated vfat & the second ext2 & I hacked /etc/sdcontrol so they'd both automount. But I'm having problems installing packages to the second partition.

I added the following:

Code: [Select]
root@grond:/usr/local# grep local /etc/ipkg.conf
dest local /usr/local/
And installed all of the pisync packages thusly:

Code: [Select]
# ipkg -d local korganizer_2.0.2_for_OZ_gcc3xx_arm.ipkand so forth, ending up with lovely trees of opt & usr directories under /usr/local (not quite what I expected).

So I then downloaded the new ipkg-link from here and ran the following:

Code: [Select]
root@grond:/usr/local# ipkg-link mount /usr/local
*** Command: add
*** Locating package
*** Found package on /usr/local/
*** Adding korganizer
*** Done.
(...etc)
which repored all the packages found & linked. But nothing shows up, not even after a reboot, and if I try to run kopi from the command line I get:

Code: [Select]
root@grond:~# /usr/local/opt/QtPalmtop/bin/kopi
/usr/local/opt/QtPalmtop/bin/kopi: error while loading shared libraries: libmicrokdepim.so.2: cannot open shared object file: No such file or directory
The library it's looking for is installed under /usr/local, so what else do I need to do  or what do I need to do differently to get everything working? thks
GROG!

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
How To Install To /usr/local?
« Reply #1 on: February 13, 2005, 05:21:48 am »
This isn't the way to do it.

If you want to mount a staorage card at /usr/local and have packages (which normally install themselves there - like octave) install there, then don't use ipkg-link. Just ignore it, use the normal 'ipkg install -d root octave.ipkg' (etc.) and if a file is to be written to /usr/local it will end up on your card.

However I don't think this is what you want is it?

I'd create a new mount point /mnt/card2 for example, then use the new ipkg and ipkg-link to install and mount packages there (I'd steer clear of trying to make these kind of mount points under /usr/local as it may already be in the PATH, and some packages which you install to root will end up on it too by accident).

Quote
which repored all the packages found & linked. But nothing shows up, not even after a reboot

You don't want to reboot, just re-start opie (rebooting probably removes the symlinks when the card is umounted...?)


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
How To Install To /usr/local?
« Reply #2 on: February 13, 2005, 12:40:45 pm »
Quote
I'd create a new mount point /mnt/card2 for example, then use the new ipkg and ipkg-link to install and mount packages there (I'd steer clear of trying to make these kind of mount points under /usr/local as it may already be in the PATH, and some packages which you install to root will end up on it too by accident).[div align=\"right\"][a href=\"index.php?act=findpost&pid=66820\"][{POST_SNAPBACK}][/a][/div]
Ah. I thought it worked like installing a package in a distro like Debian & all the paths would be set by specifying the mount point.

So I changed my ext2 slice to mount under /mnt/card1 & had to reboot to get it remount (don't know why) and it shows up fine now. I removed everything I had put there before & reinstalled all of the pisync packages, but when I run ipkg-link, I get the following errors:

Code: [Select]
root@grond:~# ipkg-link mount /mnt/card1
*** Command: mount
*** Command: add
*** Locating package
Package "kaddressbook" not found.
*** Command: add
*** Locating package
Package "kmicrokdelibs" not found.
*** Command: add
*** Locating package
Package "kmobilephoneaccess" not found.
*** Command: add
*** Locating package
Package "kopiemail" not found.
*** Command: add
*** Locating package
Package "korganizer-alarm" not found.
*** Command: add
*** Locating package
Package "korganizer" not found.
*** Command: add
*** Locating package
Package "pimTABicon" not found.
*** Command: add
*** Locating package
Package "pwmanager" not found.
*** Done.
What am I doing wrong now? It seems to recognize that the packages are there 'cause how else would it know the names. Curious.

Quote
Quote
which repored all the packages found & linked. But nothing shows up, not even after a reboot
You don't want to reboot, just re-start opie (rebooting probably removes the symlinks when the card is umounted...?)
You mean I'll have to re-run ipkg-link everytime I have to reboot? That doesn't seem to make sense if they're just symbolic links, shouldn't they persist?
GROG!

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
How To Install To /usr/local?
« Reply #3 on: February 13, 2005, 12:56:56 pm »
Update: I had to reboot again for something else & decided to try ipkg-link again. This time it reported that it found  & linked all the packages, but they don't show up even after restarting opie.
GROG!

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
How To Install To /usr/local?
« Reply #4 on: February 14, 2005, 05:02:58 am »
Quote
You mean I'll have to re-run ipkg-link everytime I have to reboot? That doesn't seem to make sense if they're just symbolic links, shouldn't they persist?

You're probably right.

If they are all found, perhaps check to see whether the symlinks exist for any of the files which were supposed to be linked (ipkg files <packagename>), then go from there.

Otherwise I don't know, sorry,


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
How To Install To /usr/local?
« Reply #5 on: February 14, 2005, 09:16:21 pm »
I managed to figure out the problem I was having with linking. I started another topic on it here.

Thanks for your help, lardman.
GROG!