-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Izumi Tsutsui edited this page Nov 18, 2018
·
6 revisions
A dumb attempt to build ancient mule-1.1 on the latest NetBSD (and Linux), including non-x86 archtectures.
Gentoo portage emacs-18.59 ebuild says:
autoconf? What's autoconf? We are living in 1992. ;-)
% su
# export PKG_PATH=http://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/`uname -p`/`uname -r`/All
# pkg_add -v git-base mozilla-rootcerts ja-FreeWnn-lib Canna-lib
# /usr/pkg/sbin/mozilla-rootcerts install
# exit
% git clone https://github.com/tsutsui/mule1.1-netbsd mule-1.1
% cd mule-1.1
% cp src/config.h-netbsd src/config.h
% cp src/mconfig.h-netbsd src/mconfig.h
% vi src/mconfig.h
[ edit to enable/disable EGG (wnn) and CANNA (and CANNA3_7) etc. ]
% make
% su
# make install
% sudo apt update
% sudo apt upgrade
% sudo apt install make gcc libx11-dev xfonts-base ncurses-dev libwnn-dev libcanna1g-dev git
% git clone https://github.com/tsutsui/mule1.1-netbsd mule-1.1
% cd mule-1.1
% cp src/config.h-linux src/config.h
% cp src/mconfig.h-linux src/mconfig.h
% vi src/mconfig.h
[ edit to enable/disable EGG (wnn) and CANNA (and CANNA3_7) etc. ]
% make
% sudo make install
On ubuntu on Windows WSL, you also need the following command to disable ASLR before 'make':
% sudo sh -c "echo 0 > /proc/sys/kernel/randomize_va_space"
See also a blog entry "mule 1.1 on WSL ubuntu 18.04 LTS" for more details.
There is no package (even in AUR) for wnn or canna, so you need build them manually. Debian freewnn patches and Debian canna patches might help.
% sudo pacman -Syu
% sudo pacman -S git base-devel libx11 xorg-fonts-misc
[ manually install libwnn or libcanna ]
% git clone https://github.com/tsutsui/mule1.1-netbsd mule-1.1
% cd mule-1.1
% cp src/config.h-linux src/config.h
% cp src/mconfig.h-linux src/mconfig.h
% vi src/mconfig.h
[ edit to enable/disable EGG (wnn) and CANNA (and CANNA3_7), adjust libwnn and libcanna paths etc. ]
% make
% sudo make install