「SeaMonkey」

  CREATED BY JENKINSBOT

SeaMonkey,我们目前(07/09/2015)正在使用的浏览器。我们喜欢风格比较老派的东西。目前,我们正在使用的 SeaMonkey 版本是基于 Firefox/52.0 构建的。

Download Page: http://www.seamonkey-project.org/releases/
1)(32位) https://download.mozilla.org/?product=seamonkey-2.46&os=linux&lang=en-US
2)(64位) https://archive.mozilla.org/pub/seamonkey/releases/2.46/contrib/seamonkey-2.46.en-US.linux-x86_64.tar.bz2

Build Instructions: https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Simple_SeaMonkey_build

编译 Version 2.4.0

整理自:http://www.linuxfromscratch.org/blfs/view/stable/xsoft/seamonkey.html

源码包及依赖

https://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/2.40/source/seamonkey-2.40.source.tar.xz

必须依赖:alsa-lib-1.1.2, GTK+-2.24.30, UnZip-6.0, yasm-1.3.0, and Zip-3.0
推荐依赖:ICU-57.1, libevent-2.0.22, libvpx-1.6.0, NSPR-4.12, NSS-3.26
可选依赖:
SQLite-3.14.1:如果没有安装,会使用源码报内置的SQLite;

python2 和 openssl:如果系统是自己编译的,确保是先安装的 openssl,然后安装了python2。不然会报 “ImportError: cannot import name HTTPSHandler”错误;
如果不确定可以检查 /usr/lib/python2.7/lib-dynload/_ssl.so(或 /usr/lib/python2.7/lib-dynload/_ssl.xxxxxxxx.so) 文件是否存在;
如果不存在,就要重新安装 python2(确保在安装openssl之后);

cURL-7.50.1, dbus-glib-0.106, Doxygen-1.8.11, GConf-3.2.6, gst-plugins-base-1.8.3 (with gst-plugins-good-1.8.3 and gst-libav-1.8.3 at runtime), OpenJDK-1.8.0.102, PulseAudio-9.0, startup-notification-0.12, Valgrind-3.11.0, Wget-1.18, Wireless Tools-29, Hunspell

进入源码目录,以下所有的操作都在源码目录中

创建 mozconfig 文件:这个文件可能要根据自己的系统调整

查看 mozconfig 文件内容

接下来

mkdir -vp mozilla/moz-build-dir

修复 GCC-6.0 以上 问题

http://www.linuxfromscratch.org/patches/blfs/7.10/seamonkey-2.40-gcc6-1.patch

patch -d mozilla/ -Np1 -i ../../seamonkey-2.40-gcc6-1.patch

环境变量

export CFLAGS_HOLD=$CFLAGS
export CXXFLAGS_HOLD=$CXXFLAGS
export CFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"
export CXXFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"

编译

make -f client.mk

安装

make  -f client.mk install INSTALL_SDK=
# 全部安装: make -C moz-build-dir install

配置

chown -R 0:0 /opt/seamonkey/lib/seamonkey-2.40
mkdir /opt/seamonkey/man
cp    -v moz-build-dir/dist/man/man1/seamonkey.1 /opt/seamonkey/man

恢复环境变量

export CFLAGS=$CFLAGS_HOLD &&
export CXXFLAGS=$CXXFLAGS_HOLD &&
unset CFLAGS_HOLD CXXFLAGS_HOLD

运行

移步到 /opt/seamonkey/ 下

参考文献

Homepage: http://www.seamonkey-project.org/
Simple SeaMonkey build
https://addons.mozilla.org/en-US/seamonkey/
https://addons.mozilla.org/en-US/seamonkey/themes
https://addons.mozilla.org/en-US/seamonkey/dictionaries
https://addons.mozilla.org/en-US/seamonkey/plugins
http://www.mozdev.org/
http://www.mozdev.org/projects/applications/SeaMonkey.html