[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Tue, 11 May 2004 21:00:01 +1000 
Subject:FreeBSD Poplog without a Linux Partition (For Bernard) 
From:John Duncan 
Volume-ID: 

Hi Bernard,
          O.K Bernard I am running FreeBSD 5.2.1 release with a GENERIC
kernel and a fully updated ports tree. To get version 2.3.2 of libc6
install the Redhat 8.0 libraries using these ports.
          Don't forget #sysctl kern.fallback_elf_brand=3 whenever you reboot

/devel/linux_base-8-8.0_4  /devel/linux_devtools-8.0_1 and
/x11/linux-Xfree86-libs 

          After building these ports you will need some more RPMS to
build Linux Poplog under compat_linux, they are

tcsh-6.12-2.i386.rpm, gzip-1.3.3-5.i386.rpm, tar-1.13.25-8.i386.rpm,
texutils-2.0.21-5.i386.rpm and openmotif-2.2.2-12.i386.rpm. You could
also get whichever RPM contains /bin/more but I got through without it.

          Install them like this example,

# rpm -i --ignoreos --nodeps --root /compat/linux \
--dbpath /var/lib/rpm tcsh-6.12-2.i386.rpm

# cd /compat/linux/usr
# mkdir -p /compat/linux/usr/local/poplog/src
# cd /home/whoever
# cp -p /home/whoever/bham-linux-poplog.tar.gz
 /compat/linux/usr/local/poplog/src
# cd /compat/linux/usr
# chroot /compat/linux /bin/bash
#bash2.05 cd /usr/local/poplog/src
#bash2.05 zcat bham-linux-poplog.tar.gz | tar xf -
#bash2.05 ./INSTALL_EVERYTHING_WITH_MOTIF

     During the build you will get dropped into the Setpop prompt a few
times when temp files can't be deleted. I just kept typing bye however
many times it took for the build to resume. The error messages look like
this      Can't delete file (Invalid Directory)
                            '/tmp/PXT1049.0

     There is no /usr/local/bin under /compat/linux so
#bash2.05 cd /usr
#bash2.05 mkdir -p /usr/local/bin
#bash2.05 ln -s /usr/local/poplog/local/setup/bin/poplog
/usr/local/bin/poplog 

     Trying to run Poplog inside /compat/linux works until you want a
graphical interface then you get this error

                  Invalid Display Specification
        DOING  fast_XtOpenDisplay XptDefaultSetup

     So exit out of the chroot and set it up under FreeBSD main setup

#bash2.05 exit
# cd /compat/linux/usr/local/poplog
# cp -pR /compat/linux/usr/local/poplog /usr/local
# cd /usr/local/bin
# ln -s /usr/local/poplog/local/setup/bin/poplog /usr/local/bin/poplog
    
      Try to run it now from your home directory

> poplog pop11 %x

       It will hesitate and say

Can't open shared object
/usr/local/poplog/current.poplog/pop/extern/lib/libXm.so
(Inappropiate ioctl for device)

       But shortly it starts up with Motif working. I have Motif for
FreeBSD installed here as well so maybe it gets a bit confused.
       I have run the sheepdog demo as recommended by Aaron and it runs
flawlessly as well as the standard installation tests.
       I don't think I needed to run /compat/linux/sbin/ldconfig with
these RPMS but I did anyway.

                                       HTH,
                                         John Duncan