MacPortsで雪豹にscreenをインストール
Snow Leopardに入っているscreenのバージョンは4.0.3だけど,縦分割パッチが当たってない
横分割では13インチMacBook Proのように縦が狭い環境だとツラい
幸いMacPortsのscreenをみると,
/opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/screen/files/patch-wrp_vertical_split
があって縦分割パッチが含まれてるようなのでportで入れてやる
普通にportでインストールしようとするとエラー発生
% sudo port install screen
---> Computing dependencies for screen
---> Fetching screen
---> Attempting to fetch screen-4.0.3.tar.gz from http://distfiles.macports.org/screen
---> Attempting to fetch 18 from http://www.cis.nctu.edu.tw/~is85005/dports/screen/
---> Verifying checksum(s) for screen
---> Extracting screen
---> Applying patches to screen
---> Configuring screen
---> Building screen
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_screen/work/screen-4.0.3" && /usr/bin/make -j2 all " returned error 2
Command output: termcap.c: In function 'CreateTransTable':
termcap.c:1195: warning: format not a string literal and no format arguments
termcap.c:1214: warning: format not a string literal and no format arguments
termcap.c:1249: warning: format not a string literal and no format arguments
/usr/bin/gcc-4.2 -c -I. -I. -O2 -arch x86_64 input.c
In file included from screen.h:144,
from input.c:26:
display.h:182: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96)
In file included from screen.h:145,
from input.c:26:
window.h:247: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96)
/usr/bin/gcc-4.2 -c -I. -I. -O2 -arch x86_64 attacher.c
In file included from screen.h:144,
from attacher.c:30:
display.h:182: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96)
In file included from screen.h:145,
from attacher.c:30:
window.h:247: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96)
attacher.c: In function 'LockTerminal':
attacher.c:718: warning: format not a string literal and no format arguments
/usr/bin/gcc-4.2 -c -I. -I. -O2 -arch x86_64 pty.c
In file included from screen.h:144,
from pty.c:30:
display.h:182: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96)
In file included from screen.h:145,
from pty.c:30:
window.h:247: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96)
pty.c:38:26: error: sys/stropts.h: No such file or directory
make: *** [pty.o] Error 1
make: *** Waiting for unfinished jobs....
Error: Status 1 encountered during processing.
screen-4.0.3-snowleopard.patchというパッチが公開されているので,ダウンロードしてくる
あとは,パッチをあててビルドしてやればOK
% cd /opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/screen/work/screen-4.0.3 % sudo patch -p1 < ~/Downloads/screen-4.0.3-snowleopard.patch patching file Makefile.in patching file config.h.in patching file configure patching file process.c Hunk #1 succeeded at 5471 (offset 5 lines). patching file pty.c patching file screen.c patching file vproc_priv.h patching file window.c % sudo port install screen ・・・ ---> Activating screen @4.0.3_3 ---> Cleaning screen
途中MacPortsがバグってて?コマンドが機能しなかったり,意味不明なエラーが出まくってたけど何とか復活
相変わらずターミナルのサイズを変えるとスプリットが解除されますが,仕様です(爆)
そろそろtscreenかtmuxに移行しようかなぁと思いつつも,常にターミナルがフルスクリーンなのであまり気にならなかったりw
コメントはまだありません »
RSS feed for comments on this post. TrackBack URL

