57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiTroubleshooting:
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi===============
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumierror while loading shared libraries reported after sudo make install
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiand when trying to run lxc-execute.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi"lxc-execute -n foo -f /usr/local/etc/lxc/lxc-macvlan.conf /bin/bash"
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi/usr/local/bin/lxc-execute: error while loading shared libraries:
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi liblxc-0.5.0.so: cannot open shared object file: No such file or
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiupdate the ld cache by running ldconfig.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumierror when starting a container.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi"lxc-start Invalid argument"
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi"lxc-execute -n foo -f /usr/local/etc/lxc/lxc-macvlan.conf /bin/bash"
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi"[syserr] lxc_start:96: Invalid argument - failed to fork into a new
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiread the lxc man page about kernel version prereq :) most probably
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiyour kernel is not configured to support the container options you
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiOn Ubuntu 8.10, if using the cvs source code rather than
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumithe provided tarball. Then make is failing with many errors
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumisimilar to the line below:
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi../../libtool: line 810: X--tag=CC: command not found
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiThis is related to a compatibility problem between the shipped
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiconfig/ltmain.sh and the libtool version installed on your
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiUbuntu 8.10 machine.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiYou have to replace the config/ltmain.sh from cvs head by the one
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumifrom your libtool package, make some cleaning and reissue all
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumithe build process:
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumicd <your_lxc_working_dir>
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumicp -f /usr/share/libtool/config/ltmain.sh config/
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi./bootstrap && ./configure && make && sudo make install