[xen-tools-discuss] make install doesn't make
Axel Beckert
abe at deuxchevaux.org
Wed Sep 8 22:19:57 CEST 2010
Hi Roland,
On Wed, Sep 08, 2010 at 07:49:49PM +0200, Roland Giesler wrote:
> I read about the reasons why Ubuntu 10.04 doesn't have xen-tools
> formally supported, but since this is the wonderful world of OSS, I'm
> installing xen-tools from source, which is why I'm here! :-)
A PPA for Lucid is still on my todo list. Will probably happen after
the 4.2 release which will be soon.
> roland at vm1:~/Xen/xen-tools$ sudo perl -MCPAN -e shell
>
> cpan shell -- CPAN exploration and modules installation (v1.9402)
> Enter 'h' for help.
>
> cpan[1]> install Text::Template
> CPAN: Storable loaded ok (v2.20)
> Going to read '/home/roland/.cpan/Metadata'
> Database was generated on Wed, 08 Sep 2010 09:29:19 GMT
> Text::Template is up to date (1.45).
>
> cpan[2]> install Config::IniFiles
> Config::IniFiles is up to date (2.58).
>
> cpan[3]> exit
All those perl libraries are available in Ubuntu, too. Just do:
$ sudo apt-get install libtext-template-perl libconfig-inifiles-perl
> roland at vm1:~/Xen/xen-tools$ sudo make install
> for i in hooks/*/*-*; do chmod 755 $i; done
> chmod 755 hooks/common.sh
> chmod 644 etc/xen-tools.conf
> chmod 644 etc/xm.tmpl
> chmod 644 etc/xm-nfs.tmpl
> chmod 644 misc/xen-tools misc/README
> mkdir -p /usr/bin
> cp bin/xen-create-image /usr/bin
> cp bin/xen-create-nfs /usr/bin
> cp bin/xt-customize-image /usr/bin
> cp bin/xt-install-image /usr/bin
> cp bin/xt-create-xen-config /usr/bin
> cp bin/xen-delete-image /usr/bin
> cp bin/xen-list-images /usr/bin
> cp bin/xen-update-image /usr/bin
> cp bin/xt-guess-suite-and-mirror /usr/bin
> chmod 755 /usr/bin/xen-create-image
> chmod 755 /usr/bin/xen-create-nfs
> chmod 755 /usr/bin/xt-customize-image
> chmod 755 /usr/bin/xt-install-image
> chmod 755 /usr/bin/xt-create-xen-config
> chmod 755 /usr/bin/xen-delete-image
> chmod 755 /usr/bin/xen-list-images
> chmod 755 /usr/bin/xen-update-image
> chmod 755 /usr/bin/xt-guess-suite-and-mirror
> mkdir -p /etc/xen-tools
> if [ -d /etc/xen-tools/hook.d ]; then mv /etc/xen-tools/hook.d/
> /etc/xen-tools/hook.d.obsolete ; fi
> mkdir -p /etc/xen-tools/skel/
> mkdir -p /etc/xen-tools/role.d/
> mkdir -p /etc/xen-tools/partitions.d/
> cp etc/xen-tools.conf /etc/xen-tools/
> cp etc/xm.tmpl /etc/xen-tools/
> cp etc/xm-nfs.tmpl /etc/xen-tools/
> cp partitions/*-* /etc/xen-tools/partitions.d/
> mkdir -p /etc/bash_completion.d
> cp misc/xen-tools /etc/bash_completion.d/
> for i in roles/* ; do if [ -f $i ]; then cp $i /etc/xen-tools/role.d; fi ; done
> mkdir -p /usr/lib/xen-tools/centos-4.d/
> mkdir -p /usr/lib/xen-tools/centos-5.d/
> mkdir -p /usr/lib/xen-tools/fedora-core-6.d/
> cp -R hooks/centos-4/*-* /usr/lib/xen-tools/centos-4.d
> cp -R hooks/centos-5/*-* /usr/lib/xen-tools/centos-5.d
> cp -R hooks/fedora-core-6/*-* /usr/lib/xen-tools/fedora-core-6.d
Looks fine until here.
> cd /usr/lib/xen-tools/ && ln -s fedora-core-6.d fedora-core-4.d
> ln: creating symbolic link `fedora-core-4.d/fedora-core-6.d': File exists
> make: [install-hooks] Error 1 (ignored)
> cd /usr/lib/xen-tools/ && ln -s fedora-core-6.d fedora-core-5.d
> ln: creating symbolic link `fedora-core-5.d/fedora-core-6.d': File exists
> make: [install-hooks] Error 1 (ignored)
[...]
> cd /usr/lib/xen-tools/ && ln -s karmic.d lucid.d
> ln: creating symbolic link `lucid.d/karmic.d': File exists
> make: [install-hooks] Error 1 (ignored)
> cd /usr/lib/xen-tools/ && ln -s karmic.d maverick.d
> ln: creating symbolic link `maverick.d/karmic.d': File exists
> make: [install-hooks] Error 1 (ignored)
Each of these errors looks to me as if "make install" is run a third
or at least a second time.
It's ok to ignore these errors. But it is a bug that it isn't checked
if something.d already links to a directory and subsequent calls to
"ln -s something.d somethingelse.d" do make symbolic links into
somethingelse.d if it already exists.
We will fix that. Thanks for the report!
Kind regards, Axel
--
/~\ Plain Text Ribbon Campaign | Axel Beckert
\ / Say No to HTML in E-Mail and News | abe at deuxchevaux.org (Mail)
X See http://www.asciiribbon.org/ | abe at noone.org (Mail+Jabber)
/ \ I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)
More information about the xen-tools-discuss
mailing list