vagrant@vagrant-ubuntu-trusty-64:~/bitcoin/src/bitcoin$ sudo make install
Making install in src
make[1]: Entering directory `/home/vagrant/bitcoin/src/bitcoin/src’
make[2]: Entering directory `/home/vagrant/bitcoin/src/bitcoin/src’
make[3]: Entering directory `/home/vagrant/bitcoin/src/bitcoin’
make[3]: Leaving directory `/home/vagrant/bitcoin/src/bitcoin’
CXX libbitcoin_server_a-blockencodings.o
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See
make[2]: *** [libbitcoin_server_a-blockencodings.o] Error 4
make[2]: Leaving directory `/home/vagrant/bitcoin/src/bitcoin/src’
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/vagrant/bitcoin/src/bitcoin/src’
make: *** [install-recursive] Error 1
なに?????????
c++: internal compiler error: Killed (program cc1plus) はメモリが足りない??
メモリを増設するか、swap領域を確保するか。
メモリ増設だとvagrant fileか?
# config.vm.provider "virtualbox" do |vb| # # Display the VirtualBox GUI when booting the machine # vb.gui = true # # # Customize the amount of memory on the VM: # vb.memory = "1024" # end
現状を確認します。
swapは0Bか?
vagrant@vagrant-ubuntu-trusty-64:~/bitcoin/src/bitcoin$ cat /etc/fstab
LABEL=cloudimg-rootfs / ext4 defaults 0 0
vagrant@vagrant-ubuntu-trusty-64:~/bitcoin/src/bitcoin$ swapon -s
Filename Type Size Used Priority
vagrant@vagrant-ubuntu-trusty-64:~/bitcoin/src/bitcoin$ free -h
total used free shared buffers cached
Mem: 489M 209M 279M 720K 7.0M 37M
-/+ buffers/cache: 165M 324M
Swap: 0B 0B 0B
swapファイルを作成する
vagrant@vagrant-ubuntu-trusty-64:~/bitcoin/src/bitcoin$ sudo fallocate -l 2G /swapfile
vagrant@vagrant-ubuntu-trusty-64:~/bitcoin/src/bitcoin$ ls -lh /swapfile
-rw-r–r– 1 root root 2.0G Oct 28 14:21 /swapfile
vagrant@vagrant-ubuntu-trusty-64:~/bitcoin/src/bitcoin$ sudo chmod 600 /swapfile
vagrant@vagrant-ubuntu-trusty-64:~/bitcoin/src/bitcoin$ ls -lh /swapfile
-rw——- 1 root root 2.0G Oct 28 14:21 /swapfile
vagrant@vagrant-ubuntu-trusty-64:~/bitcoin/src/bitcoin$ sudo mkswap /swapfile
Setting up swapspace version 1, size = 2097148 KiB
no label, UUID=fa2787e1-8129-4685-9586-651f61fb0d8e
vagrant@vagrant-ubuntu-trusty-64:~/bitcoin/src/bitcoin$ sudo swapon /swapfile
vagrant@vagrant-ubuntu-trusty-64:~/bitcoin/src/bitcoin$ free -h
total used free shared buffers cached
Mem: 489M 211M 278M 720K 7.1M 38M
-/+ buffers/cache: 166M 323M
Swap: 2.0G 0B 2.0G
きたーーーーーーーーーー
で、もう一回、bitconfのディレクトリでmakeします。今度は行けるか?
あれ、もしかして来たか??