December 1, 2017

TeX Live for ACM Master Template 1.48

MacTEX の BasicTex 2016 をアップデートした状態で ACM Master Template Vervion 1.48 に必要なパッケージを追加し、コンパイルすると原因がよく分からないが、たまにエラーで止まり dvi が生成されない。
$ sudo tlmgr update --self --all
$ sudo fmtutil -all -sys
$ sudo tlmgr install xstring sttools totpages environ trimspaces ncctools comment inconsolata newtx mweights fontaxes

MacTEX を 2017 にアップグレードしてもよいが、試しに Ubuntu 16.04 で texlive パッケージを入れるとすんなりコンパイルできた。
Ubuntu 16.04
$ sudo apt-get install texlive-science texlive-latex-extra texlive-generic-extra
Ubuntu 17.04
$ sudo apt-get install texlive-science texlive-latex-extra

References
  1. ACM Master Template [acm.org]
  2. MacTEX [tug.org]

December 3, 2015

Building XQuartz on OS X Yosemite 10.10.5

OS 標準でインストールされている libtool では configure でエラーになったので、brew で libtool をインストールした。
$ git clone https://github.com/XQuartz/xorg-server.git
$ git log -1 --oneline
d8b7a90 xserver 1.17.99.902 (1.18 RC2)
$ cd xorg-server
$ export ACLOCAL="aclocal -I /opt/X11/share/aclocal -I /usr/local/share/aclocal"
$ export PKG_CONFIG_PATH="/opt/X11/share/pkgconfig:/opt/X11/lib/pkgconfig"
$ export CFLAGS="-Wall -O0 -ggdb3 -arch x86_64 -pipe"
$ export OBJCFLAGS=$CFLAGS
$ export LDFLAGS=$CFLAGS
$ brew install libtool
$ autoreconf -fvi
$ ./configure --prefix=/opt/X11 --disable-dependency-tracking --enable-maintainer-mode --with-apple-application-name=XQuartz --with-bundle-id-prefix=org.macosforge.xquartz
$ make
$ ./hw/xquartz/mach-startup/Xquartz
Reference
  1. DeveloperInfo – XQuartz [macforge.org]

March 7, 2015

memtest86+ V5.01 installation to CentOS 7

CentOS 7.0 x86_64 の memtest86+ [memtest.org] パッケージの最新版 V4.20 のスクリプトやパッチを利用して V5.01 をインストール。
$ yum info memtest86+.x86_64  | grep -e ^Version -e ^Release
Version     : 4.20
Release     : 12.el7
# yum install memtest86+
# memtest-setup
# grub2-mkconfig -o /boot/grub2/grub.cfg"
# yum install yum-utils rpmdevtools
$ yumdownloader --source memtest86+
$ rpmdev-extract memtest86+-4.20-12.el7.src.rpm
$ curl -O http://www.memtest.org/download/4.20/memtest86+-4.20.tar.gz
$ cmp memtest86+-4.20-12.el7.src/memtest86+-4.20.tar.gz memtest86+-4.20.tar.gz
$ curl -O http://www.memtest.org/download/5.01/memtest86+-5.01.tar.gz
$ tar xvf memtest86+-5.01.tar.gz
$ cd memtest86+-5.01
$ sed -i -e's,scp memtest.bin root@192.168.0.12:/srv/tftp/mt86plus,,' Makefile
$ sed -i -e's,$(LD) -s -T memtest.lds,$(LD) -s -T memtest.lds -z max-page-size=0x1000,' Makefile
$ yum provides gnu/stubs-32.h
# yum install glibc-devel.i686
$ make
# install -m644 memtest /boot/elf-memtest86+-5.01
# install -m644 memtest.bin /boot/memtest86+-5.01
# grub2-mkconfig -o /boot/grub2/grub.cfg

February 25, 2015

memtest86+ v4.20 installation to CentOS 6.6 x86_64

memtest86+ [memtest.org]

Pre-Compiled Bootable Binary (.gz)
$ wget http://www.memtest.org/download/4.20/memtest86+-4.20.bin.gz
$ gunzip memtest86+-4.20.bin.gz
# mv memtest86+-4.20.bin /boot/
# cat >> /boot/grub/grub/grub.conf
title Memtest86+ (4.20 pre-built)
 root (hd0,0)
 kernel /memtest86+-4.20.bin

Source Code
$ wget http://www.memtest.org/download/4.20/memtest86+-4.20.tar.gz
$ tar zxvf memtest86+-4.20.tar.gz
$ cd memtest86+-4.20
# yum install glibc-devel.i686
$ make
# install -m 0644 memtest.bin /boot/memtest86+-4.20
# cat >> /boot/grub/grub/grub.conf
title Memtest86+ (4.20 src)
 root (hd0,0)
 kernel /memtest86+-4.20

June 3, 2014

"Linux Kernel HACKS"

Linux カーネル HACKS』[amazon.co.jp] メモ

May 14, 2014

EAGLE PCB 6.5.0 for Linux

EAGLE PCB 6.5.0 を CentOS 6.5 (x86_64) にインストールしようとしたところ、libssl.so.1.0.0 や libcrypto.so.1.0.0 がないと怒られる。OpenSSL のアップデートで libssl.so.1.0.1e になっていたのが問題。アップデートでは古いバージョン名のシンボリックリンクは作ってくれない模様。
Download - Get the latest Version of EAGLE PCB Design Software [cadsoftusa.com] によると 32-bit runtime environment with the libraries libssl.so.1.0.0 and libcrypto.so.1.0.0. とあるので、32-bit 版の openssl をインストールして、lib*.so.1.0.0 というシンボリックリンクを作って解決。
$ ./eagle-lin-6.5.0.run 
/tmp/eagle-setup.3131/eagle-6.5.0/bin/eagle: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
# yum install openssl.i686
# cd /usr/lib
# ln -s libssl.so.1.0.1e libssl.so.1.0.0
# ln -s libcrypto.so.1.0.1e libcrypto.so.1.0.0

April 22, 2014

eagleUp-4.4 on OS X Mavericks

Eagle から SketchUp に変換する eagleUp [wordpress.com] をセットアップ。基本的に Installation [wordpress.com] と Tutorial [wordpress.com] に従えば動いた。

環境
  • OS X 10.9.2
  • SketchUp Make 14.0.4899
  • Cadsoft Eagle 6.5.0
  • Trimble SketchUp 2014 14.0.4899
  • ImageMagick 6.8.8-9
    ($ brew install imagemagick でインストール)

eagleUp のインストール
eagleUp4.4.zip をダウンロード、中のファイルやディレクトリをインストール。
  • Eagle ULP/eagleUp_export.ulp -> /Applications/EAGLE-6.5.0/ulp/
  • models -> /Applications/EAGLE-6.5.0/
modified importer for Sketchup 2014 をダウンロード、インストール。
  • eagleUp_import_sketchup2014.rb -> /Users/[user]/Library/Application\ Support/SketchUp\ 2014/SketchUp/Plugins/

Eagle で .eup をエクスポート
  • File -> Open "demo files/demo3d.brd"
  • File -> Run ULP "/Applications/EAGLE-6.5.0/ulp/eagleUp_export.ulp"
  • 初回実行時は初期設定。
  • 初期設定後、エクスポート。
  • 生成された demo3d.eup のモデルディレクトリのパスに誤りがあったので訂正。
    $ vi demo\ files/eagleUp/demo3d.eup
    $ diff -u demo\ files/eagleUp/demo3d.eup.orig demo\ files/eagleUp/demo3d.eup
    --- demo files/eagleUp/demo3d.eup.orig 2014-04-22 06:30:25.000000000 +0900
    +++ demo files/eagleUp/demo3d.eup 2014-04-22 06:30:36.000000000 +0900
    @@ -1,5 +1,5 @@
    version;4;4;http://eagleup.wordpress.com/;
    -settings;/Applications/EAGLE/models/;/usr/local/bin/convert;/usr/local/bin/composite;rm;
    +settings;/Applications/EAGLE-6.5.0/models/;/usr/local/bin/convert;/usr/local/bin/composite;rm;
    color;0x98041C;0xE2012D;silver;ivory;
    images;/Users/a2ya/Downloads/eagleUp4.4/demo files/eagleUp/;eagleUp_demo3d;png;600;png;
    outline-arc;38.100000;19.050000;5.080000;0.000000;90.000000;1.600000;
    

SketchUp でインポート
  • Preference -> Extension -> Extentions で Ruby Script Examples が有効になっていることを確認。
  • Plugins -> Scale -> set units -> Units で Length unit が Decimal と Meters になっていることを確認。
  • Plugins -> Import eagle Up v4.4 で demo files/eagleUp/eagleUp/demo3d.eup をインポート。