AMD64/rel 5.3 - setting up Linux compatibility

Michael W. Oliver michael at gargantuan.com
Thu Mar 3 17:31:25 GMT 2005


On 2005-03-03T11:54:45-0500, Jung-uk Kim wrote:
> On Wednesday 02 March 2005 10:53 pm, Sangwoo Shim wrote:
>> On Wed, Mar 02, 2005 at 04:27:14PM -0500, Jung-uk Kim wrote:
>>> On Wednesday 02 March 2005 05:53 am, Sangwoo Shim wrote:
>>>> On Wed, Mar 02, 2005 at 02:05:02AM -0800, dR wrote:

>>>>   rpm2cpio *.rpm | tar xvf -

> Step 3 doesn't seem to work for me.  I just extracted individual RPMs.  
> Maybe you have missed few RPMs?

I followed the following procedure, which is an off-shoot of Sangwoo's
procedure, and it worked great.  One note -- I also had to manually set
the JRE path, as it was not found automatically.


1. Rebuild and install kernel with following options.

options COMPAT_43
options LINPROCFS
options COMPAT_LINUX32

2. reboot
3. add the following to /etc/fstab

linprocfs /usr/compat/linux/proc linprocfs rw 0 0

4. mount /usr/compat/linux/proc
5. cd /usr/ports/emulators/linux_base && make install clean
6. cd /usr/ports/java/linux-sun-jdk14 && make install clean
7. cd /usr/local/src   # or where ever you want
8. fetch "http://openoffice.mirrors.pair.com/contrib/rc/2.0bc/OOo_2.0bc_LinuxIntel_install.tar.gz"
9. tar -zxvf OOo_2.0bc_LinuxIntel_install.tar.gz
10. cd RPMS
11. mv openofficeorg* /usr/compat/linux   # (do this so that the extracted
    usr/bin and usr/share stuff are put in the right place later)
12. cd /usr/compat/linux
13. /bin/ls -1 openofficeorg*rpm | while read line; \
    do rpm2cpio $line | tar -xvf - ; done
14. rm openofficeorg*rpm
15. echo "/opt/openoffice.org1.9.79/program/filter" >>/usr/compat/linux/etc/ld.so.conf
16. /usr/compat/linux/sbin/ldconfig
17. Execute /compat/linux/opt/openoffice.org1.9.79/program/soffice


NOTE: failing to add "/opt/openoffice.org1.9.79/program/filter"
/usr/compat/linux/etc/ld.so.conf resulted in the following error when
trying to run soffice:

/usr/compat/linux/opt/openoffice.org1.9.79/program/soffice.bin: error
while loading shared libraries: libfreetype.so.6: cannot open shared
object file: No such file or directory

-- 
Mike Oliver
[see complete headers for contact information]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-amd64/attachments/20050303/6591cf3e/attachment.bin


More information about the freebsd-amd64 mailing list