Installing "GNUstep" on NetBSD


この「小さな場」は、オブジェクト指向開発環境のひとつであるGNUstepに関する情報を提供することを目的として開設・運営しています。
私はGNUstepをNetBSD/i386バージョン1.5.2にインストールして利用しており、以下はその際の記録です。内容に関しては無保証ですが、これからGNUstepに触れてみようと考えている方の参考になれば幸いです。明らかな誤解等ありましたら電子メールにてこっそりご連絡ください。 :-)
(補足:以下の記録はGNUstepパッケージ群に含まれる"README.NetBSD"においても参照可能です)


//
// Install GNUstep
//


su root


[Add `/etc/ld.so.conf']
/usr/local/lib
/usr/X11R6/lib


ldconfig


[Use the NetBSD packages collection...Install `/usr/local']
gcc-2.95.2
gmake-3.79.1
libiconv-1.7
libxml2-2.4.10
tiff-3.5.5


rehash


alias gmake gmake CC=/usr/local/gcc-2.95.2/bin/cc CPP=/usr/local/gcc-2.95.2/bin/cpp


tar zxvf ffcall-1.8c.tar.gz
cd ffcall-1.8c
./configure --prefix=/usr
gmake
gmake check
gmake install


tar zxvf gnustep-make-1.0.0.tar.gz
cd gnustep-make-1.0.0
./configure --prefix=/usr/local/GNUstep
gmake
gmake install
gmake distclean


source /usr/local/GNUstep/System/Makefiles/GNUstep.csh


tar zxvf gnustep-objc-1.0.1.tar.gz
cd gnustep-objc-1.0.1

[Edit `./GNUmakefile' Line:39]
    THREADING = posix -> THREADING = single

gmake
gmake install


cd gnustep-make-1.0.0
./configure
gmake
gmake install


tar zxvf gnustep-base-1.0.0.tar.gz
cd gnustep-base-1.0.0

ln -s /usr/local/bin/xml2-config /usr/local/bin/xml-config
./configure --with-xml-prefix=/usr/local --with-libiconv-library=/usr/local/lib

gmake

[Ahhh...Error...and Edit `./Source/dynamic-load.h' Line:94]
    sym = dlsym(RTLD_NEXT, symbol); -> sym = dlsym(handle, symbol);

gmake
gmake install


tar zxvf gnustep-gui-0.6.8.tar.gz
cd gnustep-gui-0.6.8
./configure
gmake
gmake install


tar zxvf gnustep-xgps-0.6.8.tar.gz
cd gnustep-xgps-0.6.8
./configure
gmake
gmake install


tar zxvf extensions-0.8.6.tar.gz
cd extensions-0.8.6
./configure
gmake
gmake install


mkdir ~/GNUstep


[Add `/etc/rc.local']
if [ -f /usr/local/GNUstep/System/Tools/ix86/netbsdelf1.5.2/gdomap ]; then
    /usr/local/GNUstep/System/Tools/ix86/netbsdelf1.5.2/gdomap
fi


[Add `~/.cshrc']
setenv GNUSTEP_TZ Japan
source /usr/local/GNUstep/System/Makefiles/GNUstep.csh
if (`gdomap -L GDNCServer | grep -c Found` == '0') then
    echo 'Starting GNUstep services.'
    gdnc
    gpbs
endif
alias gmake gmake CC=/usr/local/gcc-2.95.2/bin/cc CPP=/usr/local/gcc-2.95.2/bin/cpp


reboot


//
// e.g. Install CurrencyConverter(in the GNUstep examples)
//


su root


tar zxvf gustep-examples-0.9.2.tar.gz
cd gustep-examples-0.9.2/gui/CurrencyConverter
gmake
gmake install


startx


openapp CurrencyConverter.app

[CurrencyConverter Image]



© 1999-2002 JNQT jnqt@fbe.freeserve.ne.jp