[xen-tools-discuss] make install doesn't make
Roland Giesler
roland at thegreentree.za.net
Wed Sep 8 23:47:45 CEST 2010
2010/9/8 Stéphane Jourdois <sjourdois at gmail.com>:
> Hi,
> I'll look into these errors (which could be corrected by running "sudo rm -rf /usr/lib/xen-tools" before "make install"), but I don't think they are the cause of your problem.
> You have a depends on a xen-tools package, which you didn't install.
> Have you tried the ubuntu/debian recommended way :
>
> make changelog
> dpkg-buildpackage
> sudo dpkg -i ../xen-tools_*.deb
I tried doing this, but the result is as follows:
roland at vm1:~/Xen/xen-tools$ sudo rm -rf /usr/lib/xen-tools
(This is based on Axel's response in this thread)
roland at vm1:~/Xen/xen-tools$ sudo make changelog
git log -v > ChangeLog
roland at vm1:~/Xen/xen-tools$ sudo dpkg-buildpackage -d
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package xen-tools
dpkg-buildpackage: source version 4.2~rc2-1
dpkg-buildpackage: source changed by Axel Beckert <abe at debian.org>
dpkg-buildpackage: host architecture amd64
debian/rules clean
dh_testdir
make: dh_testdir: Command not found
make: *** [clean] Error 127
dpkg-buildpackage: error: debian/rules clean gave error exit status 2
I don't know how to deal with this.
I then tried to do the simple "make install" after removing the
directories as Axel suggested:
roland at vm1:~/Xen/xen-tools$ sudo rm -rf /usr/lib/xen-tools
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
cd /usr/lib/xen-tools/ && ln -s fedora-core-6.d fedora-core-4.d
cd /usr/lib/xen-tools/ && ln -s fedora-core-6.d fedora-core-5.d
cd /usr/lib/xen-tools/ && ln -s fedora-core-6.d fedora-core-7.d
cd /usr/lib/xen-tools/ && ln -s fedora-core-6.d fedora-core-8.d
cd /usr/lib/xen-tools/ && ln -s fedora-core-6.d fedora-core-9.d
cd /usr/lib/xen-tools/ && ln -s fedora-core-6.d fedora-core-10.d
cd /usr/lib/xen-tools/ && ln -s fedora-core-6.d fedora-core-11.d
cd /usr/lib/xen-tools/ && ln -s fedora-core-6.d fedora-core-12.d
cd /usr/lib/xen-tools/ && ln -s fedora-core-6.d fedora-core-13.d
mkdir -p /usr/lib/xen-tools/debian.d/
cp -R hooks/debian/*-* /usr/lib/xen-tools/debian.d
cd /usr/lib/xen-tools/ && ln -s debian.d sarge.d
cd /usr/lib/xen-tools/ && ln -s debian.d etch.d
cd /usr/lib/xen-tools/ && ln -s debian.d lenny.d
cd /usr/lib/xen-tools/ && ln -s debian.d squeeze.d
cd /usr/lib/xen-tools/ && ln -s debian.d sid.d
cd /usr/lib/xen-tools/ && ln -s debian.d testing.d
cd /usr/lib/xen-tools/ && ln -s debian.d stable.d
mkdir -p /usr/lib/xen-tools/gentoo.d/
cp -R hooks/gentoo/*-* /usr/lib/xen-tools/gentoo.d
mkdir -p /usr/lib/xen-tools/dapper.d/
cp -R hooks/dapper/*-* /usr/lib/xen-tools/dapper.d/
mkdir -p /usr/lib/xen-tools/edgy.d/
cp -R hooks/edgy/*-* /usr/lib/xen-tools/edgy.d/
cd /usr/lib/xen-tools/ && ln -s edgy.d feisty.d
cd /usr/lib/xen-tools/ && ln -s edgy.d gutsy.d
cd /usr/lib/xen-tools/ && ln -s edgy.d hardy.d
mkdir -p /usr/lib/xen-tools/intrepid.d/
cp -R hooks/intrepid/*-* /usr/lib/xen-tools/intrepid.d/
cd /usr/lib/xen-tools/ && ln -s intrepid.d jaunty.d
mkdir -p /usr/lib/xen-tools/karmic.d/
cp -R hooks/karmic/*-* /usr/lib/xen-tools/karmic.d/
cd /usr/lib/xen-tools/ && ln -s karmic.d lucid.d
cd /usr/lib/xen-tools/ && ln -s karmic.d maverick.d
cp hooks/common.sh /usr/lib/xen-tools
mkdir -p /usr/share/perl5/Xen/Tools
cp ./lib/Xen/*.pm /usr/share/perl5/Xen
cp ./lib/Xen/Tools/*.pm /usr/share/perl5/Xen/Tools
mkdir -p man
cd bin; for i in *-*[!y]; do pod2man --release=4.2rc2 --official
--section=8 $i ../man/$i.8; done
for i in man/*.8; do gzip --force -9 $i; done
mkdir -p /usr/share/man/man8/
cp man/*.8.gz /usr/share/man/man8/
Up to this point all seems well, I don't notice errors at least.
However, how do I know tell Ubuntu that the xen-tools package is
installed? If I try the following, I still get a dependency error:
roland at vm1:~/Xen/xen-tools$ sudo apt-get install ubuntu-xen-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ubuntu-xen-server: Depends: xen-tools but it is not installable
E: Broken packages
roland at vm1:~/Xen/xen-tools$
Or should I now install all the Xen Server components from source?
thanks again
Roland
More information about the xen-tools-discuss
mailing list