Created
October 14, 2012 19:17
-
-
Save cdwilson/3889541 to your computer and use it in GitHub Desktop.
byobu on Mountain Lion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
byobu requires the newt python libraries, however the libnewt provided by Macports is configured with the "--without-python" flag. | |
Since we only need the python .so's, we can just build newt and copy the python bits by hand into the Macports python directories. | |
- sudo port install coreutils gsed python2.7 | |
- Make sure the depends_lib from https://trac.macports.org/browser/trunk/dports/devel/libnewt/Portfile are installed (i.e. sudo port install gettext popt tcl slang2) | |
- cd ~/Downloads | |
- Download https://fedorahosted.org/releases/n/e/newt/newt-0.52.14.tar.gz | |
- tar zxvf newt-0.52.14.tar.gz | |
- cd newt-0.52.14 | |
- patch newt (patch -p0 < ~/Downloads/patch.diff) with the patches from https://trac.macports.org/browser/trunk/dports/devel/libnewt/files | |
- ./configure | |
- make | |
- sudo cp snack.py /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 | |
- sudo cp python2.7/_snackmodule.so /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload | |
- cd ~/Downloads | |
- Download https://launchpad.net/byobu/trunk/5.21/+download/byobu_5.21.orig.tar.gz | |
- tar zxvf byobu_5.21.orig.tar.gz | |
- cd byobu_5.21.orig | |
- ./configure | |
- make | |
- make install | |
- change all python scripts in byobu to use #!/opt/local/bin/python2.7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo port install coreutils gsed python27 gettext popt tcl slang2 autoconf libtool bzr
sudo port upgrade --force -n -s libnewt "configure.args=--with-python"
bzr branch lp:byobu
cd byobu
autoreconf -ivf
./configure
make
sudo make install