hns - 日記自動生成システム - Version 2.19.9

先月 2014年03月 来月
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2014年03月19日(水) 旧暦 [n年日記] [更新:"2014/03/20 00:12:13"]

#1 [pkgsrc] bootstrap on Ubuntu 12

気を取直して、最初からやり直したら、bootstrap は簡単に終りました。
rm -rf /usr/pkg /var/db/pkg /var/db/pkgdb
(cd /usr/pkgsrc; cvs update -dPA)
export SH=/bin/bash;
mkdir /var/db;
(cd  /usr/pkgsrc/bootstrap;
./bootstrap --prefix=/usr/pkg --pkgdbdir=/var/db/pkgdb)
ただ、次のように言われます
=> Becoming ``root'' to make su-real-package-install (/bin/su)
su: must be run from a terminal
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgtools/digest
*** Error code 1
root になって、sudo だけ作ろうとすると、libtool-base で:
checking dependency style of g++... none
checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/usr/pkgsrc/devel/libtool-base/work/libtool-2.4.2':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/devel/libtool-base
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/devel/libtool-base
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/security/sudo
root@ubuntu12-ja-emacs24:/usr/pkgsrc/security/sudo# 
/lib/cpp でなくて /usr/bin/cpp のようです。
/usr/pkg/etc/mk.conf に
#CPPPATH=/usr/bin/cpp
CXXCPP=/usr/bin/cpp
と書いて見るかな ...実は単に c++ が入っていないだけでした。
apt-get install g++
これで解決

(bootstrap) Ubuntu 13.10 (64 bit) でやり直し:

Ubuntu 13.10 で bootstrap pkgsrc
 sudo apt-get install ssh

 mkdir .ssh
 vi ~/.ssh/authorized_keys
 sudo vi /etc/ssh/sshd_config 

 sudo apt-get install g++
 sudo apt-get install cvs

 cd /usr/
 sudo mkdir pkgsrc
 sudo chown makoto pkgsrc
 time cvs -Q -d :pserver:anoncvs@anoncvs.jp.netbsd.org:/cvs/cvsroot login
 (anoncvs)
 time cvs -Q -d :pserver:anoncvs@anoncvs.jp.netbsd.org:/cvs/cvsroot co pkgsrc

 sudo mkdir /var/db
 cd /usr/pkgsrc/bootstrap;
 time sudo env SH=/bin/bash LANG=C ./bootstrap --prefix=/usr/pkg --pkgdbdir=/var/db/pkgdb
もし更に本当にやり直す時には、次のようにすっかり消してしまうの 「も」 良い
/usr/pkgsrc/bootstrap/work/bin/bmake clean-depends;
rm -rf /usr/pkgsrc/bootstrap/work;
rm -rf /usr/pkg
rm -rf /var/db/pkg*
...
===> bootstrap started: 2014	  3  19		   23:09:50 JST
===> bootstrap ended:   2014	  3  19		   23:21:29 JST
316.27s 201.54s 11:39.11 74% 0+0k 84760+269656io 400pf+0w
=> Becoming ``root'' to make su-real-package-install (/bin/su)
su: must be run from a terminal
*** Error code 1
sudo -s してから
sudo だけ pkgsrc を入れる
root@xen3-disk-e:/usr/pkgsrc/security/sudo# \
env PATH=/usr/pkg/bin:/usr/pkg/sbin:${PATH} bmake package-install
sudoers に次の行を加える
--- /usr/pkg/etc/sudoers.orig  2014-03-20 00:04:54.101149316 +0900
+++ /usr/pkg/etc/sudoers       2014-03-19 23:45:43.835610112 +0900
@@ -73,6 +73,7 @@
 
 ## Uncomment to allow members of group wheel to execute any command
 # %wheel ALL=(ALL) ALL
+%sudo ALL=(ALL) ALL
 
 ## Same thing without a password
 # %wheel ALL=(ALL) NOPASSWD: ALL
/usr/pkg/etc/mk.conf に次のように書き加える
.if exists(/usr/pkg/bin/sudo)
SU_CMD=        ${LOCALBASE}/bin/sudo /bin/sh -c
.endif
後は通常 user で:
(cd /usr/pkgsrc/category/package;
bmake package-install)
しかし avr-binutils-2.23.2 は package 出来てしまった。 joyent/Linux では失敗しているのだけれど。
xen3-disk-e@makoto 23:46:04/140319(..cross/avr-binutils)% uname -a
Linux xen3-disk-e 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9
  16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
xen3-disk-e@makoto 23:46:12/140319(..cross/avr-binutils)% find . -name libiberty.a
./work/binutils-2.23.2/libiberty/libiberty.a
./work/.destdir/usr/pkg/avr/lib/libiberty.a
xen3-disk-e@makoto 23:49:50/140319(..cross/avr-binutils)% 
gcc 違いかな。
xen3-disk-e@makoto 23:49:50/140319(..cross/avr-binutils)% gcc --version
gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

xen3-disk-e@makoto 23:51:06/140319(..cross/avr-binutils)% ld --version 
GNU ld (GNU Binutils for Ubuntu) 2.23.52.20130913
Copyright 2013 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
xen3-disk-e@makoto 23:51:11/140319(..cross/avr-binutils)% 



最近の日記
2024年05月06日
py-setuptools (python 3.11.9)
make release took 1 hours and 10 min
qemu invocation for 10.99.10
2024年05月05日
Windows 10 version
serial connection
bc bench
2024年05月04日
Trial on 10.99.10
another version (later trial) to succeed
2024年04月29日
dkim
2024年03月10日
停電 (瞬電)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)