linux_base installation - missing rpm binary

2009-08-28 Thread Jeff Laine
Hello,


I've just installed the emulators/linux_base-f10 port in order to run some 
rpm-based applications.
Various online manuals told me that one should not use the native freebsd rpm 
binary (archivers/rpm), but instead use the /compat/linux/bin/rpm. But there's 
no such rpm binary under /compat/linux tree. What am I doing wrong? XD

I'm running vanilla FreeBSD-7.2-RELEASE, fresh ports tree.


TIA.

-- 
Best regards,
Jeff

| Nobody wants to say how this works.  |
|  Maybe nobody knows ...  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: linux_base installation - missing rpm binary

2009-08-28 Thread Boris Samorodov
On Fri, 28 Aug 2009 13:06:28 +0400 Jeff Laine wrote:

 I've just installed the emulators/linux_base-f10 port in order to run some 
 rpm-based applications.
 Various online manuals told me that one should not use the native freebsd rpm 
 binary (archivers/rpm), but instead use the /compat/linux/bin/rpm. But 
 there's 
 no such rpm binary under /compat/linux tree. What am I doing wrong? XD

FreeBSD has it's own package manager and it is used to track
all ports (linux ports as well). So we don't use linux rpm
database (it is not supported). Said that I might add that it
doesn't mean that this won't work if you try. But you'll be at 
your own here.

If you need to install a linux rpm archieve you should do
as root:
# cd /compat/linux
# rpm2cpio -q  linux.rpm.archieve | cpio -id
Then brandelf any binary executable (not libraries!).

Sure you won't be able to do a clean uninstall. But that
may help you to do your tests.

The best way is to create an apropriate port and use it.
Creating a linux port is not hard task. Please take a look
at the ports tree (audio ports may be a good starting points
as examples).

HTH

 I'm running vanilla FreeBSD-7.2-RELEASE, fresh ports tree.

BTW, I'm sure you have read /usr/ports/UPDATING and do have an
apropriate variables at /etc/make.conf. ;-)

-- 
WBR, Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone  Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: linux_base installation - missing rpm binary

2009-08-28 Thread Jeff Laine
On Fri,28-08-2009 [14:57:04], Boris Samorodov wrote:
 On Fri, 28 Aug 2009 13:06:28 +0400 Jeff Laine wrote:
 
  I've just installed the emulators/linux_base-f10 port in order to run some 
  rpm-based applications.
  Various online manuals told me that one should not use the native freebsd 
  rpm 
  binary (archivers/rpm), but instead use the /compat/linux/bin/rpm. But 
  there's 
  no such rpm binary under /compat/linux tree. What am I doing wrong? XD
 
 FreeBSD has it's own package manager and it is used to track
 all ports (linux ports as well). So we don't use linux rpm
 database (it is not supported). Said that I might add that it
 doesn't mean that this won't work if you try. But you'll be at 
 your own here.
 
 If you need to install a linux rpm archieve you should do
 as root:
 # cd /compat/linux
 # rpm2cpio -q  linux.rpm.archieve | cpio -id
 Then brandelf any binary executable (not libraries!).
 
 Sure you won't be able to do a clean uninstall. But that
 may help you to do your tests.
 
 The best way is to create an apropriate port and use it.
 Creating a linux port is not hard task. Please take a look
 at the ports tree (audio ports may be a good starting points
 as examples).
 
 HTH
 
  I'm running vanilla FreeBSD-7.2-RELEASE, fresh ports tree.
 
 BTW, I'm sure you have read /usr/ports/UPDATING and do have an
 apropriate variables at /etc/make.conf. ;-)
 

Sure, I did. ;) Thanks for the answer, I've used cpio to unpack my rpms.


And another related question if you don't mind. 

I've unpacked my apps under /compat/linux tree but my binary requires 
shared X libraries:


nsdexec: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot 
  open shared object file: No such file or directory
error while loading shared libraries: libXt.so.6: cannot open shared 
 object file: No such file or directory

I've tried to install x11/linux-f10-xorg-libs port but brandelf tells me 
they are BSD-binaries incompatible with my linux stuff. And thus my app
can't start complaining on incompatibilities if I tune lib paths.

Any hints?

TIA.






-- 
Best regards,
Jeff

| Nobody wants to say how this works.  |
|  Maybe nobody knows ...  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: linux_base installation - missing rpm binary

2009-08-28 Thread Boris Samorodov
On Fri, 28 Aug 2009 15:54:05 +0400 Jeff Laine wrote:

 I've unpacked my apps under /compat/linux tree but my binary requires 
 shared X libraries:


 nsdexec: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot 
   open shared object file: No such file or directory

This library is a part of x11-toolkits/linux-gtk2 port.

 error while loading shared libraries: libXt.so.6: cannot open shared 
  object file: No such file or directory

 I've tried to install x11/linux-f10-xorg-libs port

Good.

 but brandelf tells me 

As I've wrote at my previuos email, brandelf should be used
only with binary executives. Don't use it for libraries.
You have been warned! ;-)

 they are BSD-binaries incompatible with my linux stuff. And thus my app
 can't start complaining on incompatibilities if I tune lib paths.

You should not tweak paths untill absolutely needed (and if you
really understand what you do). Lunuxulator should DRT if a needed
library is present. In case of errors submit them here (or better
even to freebsd-emulation@ ML, since more people may help there).

-- 
WBR, Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone  Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org