soup4you2
April 8th, 2003, 18:55
There comes a time for anybody running OpenBSD where you wish to have a decent Browser on your operating system and on occasion get the overwhelming desier to piss on opera. Well heres one method of getting mozilla to work on OpenBSD. However i have not fully tested it yet so keep that in mind when trying to run it..
Lets start off by downloading the mozilla sources.. You can download mozilla here.
http://ftp.mozilla.org/pub/mozilla/releases/mozilla1.2.1/src/
Now that you have mozilla go ahead and extract it to a nice working directory..
($:~)=> tar -xzvf mozilla-source-1.2.1.tar.gz
($:~)=> cd mozilla
Ok before we begin compiling it there are a couple things we need to do first.. Your going to need to change your enviroment for a bit for it to compile properly..
With csh: setenv CPPFLAGS -fno-stack-protector
With sh: export CPPFLAGS=-fno-stack-protector
With bash: CPPFLAGS="-fno-stack-protector" && export CPPFLAGS
[Soup's Note] I tried running configure w/ the CPPFLAGS set but the configure script seems to think gcc is broke ever time.. I'm unsure what consiquences this will have but it seems to compile fine without these enviroment settings..
Now we can run the configure tool
($:~)=> ./configure --disable-tests --disable-glibtest --disable-debug
--disable-shared --enable-static --enable-mailnews
--enable-strip --without-pthreads --prefix=/usr/local
--disable-accessibility --enable-toolkit=xlib
--disable-md --enable-optimize --disable-pedantic
--with-system-zlib --disable-cpp-exceptions --disable-cpp-rtti
--enable-chrome-format=jar --disable-xft --disable-calendar
--enable-extensions --with-system-zlib --with-system-png
--with-system-mng --disable-ldap --enable-crypto
You can talor the configure all you like but there are 2 in there thats required
--disable-shared and --enable-static
Now Download the following patch from our servers..
http://www.bsdhound.com/downloads/mozilla_resclock.patch
Go ahead and patch your mozilla
($:~)=> patch -p0 < ../mozilla.patch
After that go ahead and run
($:~)=> gmake && gmake install
Now we need to symlink a couple of things real quick.. Dont worry i'll make this easy for you..
($:~)=> ln -s /usr/local/lib/mozilla-1.2.1 /usr/local/lib/mozilla
Now we need to add a variable into your rc.conf
($:~)=> vi /etc/rc.conf
Search for shlib_dir and add in /usr/local/lib/mozilla
Now were lazy and value our uptime here.. Afterall uptime is another form of Geek racing.. So thats where the ldconfig tool comes in handy..
($:~)=> ldconfig -m /usr/local/lib/mozilla
Were not done yet so dont close your browser.. Next we need to edit /usr/local/bin/mozilla
($:~)=> vi /usr/local/bin/mozilla
Add this in there.
MOZILLA_FIVE_HOME=/usr/local/lib/mozilla
And congrats you should now have mozilla installed and working..
Lets start off by downloading the mozilla sources.. You can download mozilla here.
http://ftp.mozilla.org/pub/mozilla/releases/mozilla1.2.1/src/
Now that you have mozilla go ahead and extract it to a nice working directory..
($:~)=> tar -xzvf mozilla-source-1.2.1.tar.gz
($:~)=> cd mozilla
Ok before we begin compiling it there are a couple things we need to do first.. Your going to need to change your enviroment for a bit for it to compile properly..
With csh: setenv CPPFLAGS -fno-stack-protector
With sh: export CPPFLAGS=-fno-stack-protector
With bash: CPPFLAGS="-fno-stack-protector" && export CPPFLAGS
[Soup's Note] I tried running configure w/ the CPPFLAGS set but the configure script seems to think gcc is broke ever time.. I'm unsure what consiquences this will have but it seems to compile fine without these enviroment settings..
Now we can run the configure tool
($:~)=> ./configure --disable-tests --disable-glibtest --disable-debug
--disable-shared --enable-static --enable-mailnews
--enable-strip --without-pthreads --prefix=/usr/local
--disable-accessibility --enable-toolkit=xlib
--disable-md --enable-optimize --disable-pedantic
--with-system-zlib --disable-cpp-exceptions --disable-cpp-rtti
--enable-chrome-format=jar --disable-xft --disable-calendar
--enable-extensions --with-system-zlib --with-system-png
--with-system-mng --disable-ldap --enable-crypto
You can talor the configure all you like but there are 2 in there thats required
--disable-shared and --enable-static
Now Download the following patch from our servers..
http://www.bsdhound.com/downloads/mozilla_resclock.patch
Go ahead and patch your mozilla
($:~)=> patch -p0 < ../mozilla.patch
After that go ahead and run
($:~)=> gmake && gmake install
Now we need to symlink a couple of things real quick.. Dont worry i'll make this easy for you..
($:~)=> ln -s /usr/local/lib/mozilla-1.2.1 /usr/local/lib/mozilla
Now we need to add a variable into your rc.conf
($:~)=> vi /etc/rc.conf
Search for shlib_dir and add in /usr/local/lib/mozilla
Now were lazy and value our uptime here.. Afterall uptime is another form of Geek racing.. So thats where the ldconfig tool comes in handy..
($:~)=> ldconfig -m /usr/local/lib/mozilla
Were not done yet so dont close your browser.. Next we need to edit /usr/local/bin/mozilla
($:~)=> vi /usr/local/bin/mozilla
Add this in there.
MOZILLA_FIVE_HOME=/usr/local/lib/mozilla
And congrats you should now have mozilla installed and working..