Hello,
>From the various docs, I scraped together this list of package
dependencies, which I've got installed via Ansible:
- name: Install Dependencies
apt: name={{item}} state=present
with_items:
- bridge-utils
- cabal-install
- fping
- ghc
- iproute
- iputils-arping
- libghc-attoparsec-dev
- libghc-base64-bytestring-dev
- libghc-cabal-dev
- libghc-crypto-dev
- libghc-curl-dev
- libghc-hinotify-dev
- libghc-hslogger-dev
- libghc-json-dev
- libghc-lens-dev
- libghc-lifted-base-dev
- libghc-network-dev
- libghc-parallel-dev
- libghc-psqueue-dev
- libghc-regex-pcre-dev
- libghc-snap-server-dev
- libghc-text-dev
- libghc-utf8-string-dev
- libghc-vector-dev
- libghc-zlib-dev
- libpcre3-dev
- lvm2
- m4
- make
- ndisc6
- openssl
- python
- python-bitarray
- python-dev
- python-ipaddr
- python-openssl
- python-psutil
- python-pycurl
- python-pyinotify
- python-pyparsing
- python-setuptools
- python-simplejson
- socat
- ssh
I then go to configure and make ...
root@ganeti06-24:/opt/ganeti-2.15.0# *pwd*
/opt/ganeti-2.15.0
root@ganeti06-24:/opt/ganeti-2.15.0# *./configure --localstatedir=/var
--sysconfdir=/etc*
[ . . . ]
root@ganeti06-24:/opt/ganeti-2.15.0# *make*
[ . . . ]
for p in src/htools test/hs/hpc-htools test/hs/hpc-mon-collector
src/ganeti-kvmd src/ganeti-wconfd src/hconfd src/hluxid src/hs2py
src/rpc-test src/ganeti-mond src/ganeti-metad ; do \
echo >> ganeti.cabal; \
echo "executable `basename $p`" >> ganeti.cabal; \
echo " hs-source-dirs: apps" >> ganeti.cabal; \
echo " main-is: `basename $p`.hs" >> ganeti.cabal; \
echo " default-language: Haskell2010" >> ganeti.cabal; \
echo " build-depends:" >> ganeti.cabal; \
echo " base" >> ganeti.cabal; \
echo " , ganeti" >> ganeti.cabal; \
if [ $p == test/hs/htest ]; then \
echo " , hslogger" >> ganeti.cabal; \
echo " , test-framework" >> ganeti.cabal; \
elif [ $p == src/rpc-test ]; then \
echo " , json" >> ganeti.cabal; \
fi \
done
touch empty-cabal-config
/usr/bin/cabal --config-file=empty-cabal-config configure --user \
-f`test True == True && echo "mond" || echo "-mond"` \
-f`test True == True && echo "metad" || echo "-metad"`
Warning: No remote package servers have been specified. Usually you would
have
one specified in the config file.
Resolving dependencies...
Configuring ganeti-2.15...
cabal: At least the following dependencies are missing:
QuickCheck >=2.4.2 && <2.8,
temporary >=1.1.2.3 && <1.3,
test-framework >=0.6 && <0.9,
test-framework-hunit >=0.2.7 && <0.4,
test-framework-quickcheck2 >=0.2.12.1 && <0.4
make: *** [cabal_macros.h] Error 1
I found a mailing list discussion that led to an invalid bug on Google
Code, which has a warning that that bug tracking will soon go read-only. I
saw references to using a PPA for a newer cabal-install and ghc, but so far
have not gotten any traction from
https://launchpad.net/~hvr/+archive/ubuntu/ghc ... if anyone has figured
out some shake-and-bake build instructions for Ubuntu LTS + KVM please help
me out. At any rate, I figure I have a blog post in my future.
Thanks,
-danny
--
http://dannyman.toldme.com