[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-API] Intel CQM feature enabling in XenAPI
Hi Euan, > > This is happening because building and installing xenserver-core does > not install xen-api's build dependencies. xenserver-core builds RPMs > in temporary chroot environments, using mock, so even though you have build > xen-api as part of xenserver-core, its dependencies were not > installed on your machine. You can use 'yum-builddep' to install > them from your xenserver-core repository, but if you want to build trunk > xen-api > you will need to install a couple of other dependencies which are not yet > packaged in xenserver-core. > > This should do the trick: > > # install the packaged dependencies > sudo yum-builddep xapi > > # build and install ocaml-ctypes, needed by ocaml-opasswd below > sudo yum install libffi-devel > curl -OL > https://github.com/ocamllabs/ocaml-ctypes/archive/ocaml-ctypes-0.2.3.tar.gz > tar zxvf ocaml-ctypes-0.2.3.tar.gz > cd ocaml-ctypes-ocaml-ctypes-0.2.3 > make > make install > cd .. > > # build and install ocaml-passwd > # ocaml-opasswd must be patched to build with the version of ocaml used > by > # xenserver-core > git clone https://github.com/xapi-project/ocaml-opasswd > sudo yum install oasis > cd ocaml-opasswd > patch -p1 < ocaml-opasswd.patch > oasis setup > make > sudo make install > cd .. > > # build xen-api > git clone https://github.com/xapi-project/xen-api > cd xen-api > make > Thanks much for your detail guide. I firstly built xsenserver-core, and then followed your instructions and there are not those package dependence issues when built xapi. But unfortunately, I met one make error as follow: --- Checking for gcc... (found /usr/bin/gcc) ] 00283 / 02615 --- Checking for g++... (found /usr/bin/g++) - build ocaml/xapi storage_proxy.o + ocamlfind ocamlopt -package oclock,xml-light2,cdrom,pciutil,sexpr,xcp,stunnel,http-svr,xen-utils,netdev,tapctl,rpclib,xenstore-compat,xenctrl,uuid,gzip,sha1,xcp.network,xcp.rrd,xcp.storage,xcp.xen,xcp.memory,tar,tar.unix,oPasswd,xenctrl,xenctrlext,xenstore-compat,cpuid -g -dtypes -bin-annot -thread -warn-error +a-4-6-9-27-28-29 -ccopt -fPIC -I ../idl -I ../idl/ocaml_backend -I ../autogen -I ../database/ -I ../xenops -I ../xva -I ../util -I ../auth -I ../license -I ../client_records -I ../rfb -I ../gpg -I ../rrdd/interface -I .. -c storage_proxy.ml File "storage_proxy.ml", line 41, characters 16-31: Error: Unbound value Client.SR.probe *** omake: 2117/2630 targets are up to date *** omake: failed (3 min 18.94 sec, 448/502 scans, 359/926 rules, 1235/3484 digests) *** omake: targets were not rebuilt because of errors: ocaml/xapi/storage_proxy.cmi depends on: ocaml/xapi/storage_proxy.ml ocaml/xapi/storage_proxy.cmx depends on: ocaml/xapi/storage_proxy.ml ocaml/xapi/storage_proxy.o depends on: ocaml/xapi/storage_proxy.ml make: *** [all] Error 2 Maybe I am missing something? Thanks, Qiaowei _______________________________________________ Xen-api mailing list Xen-api@xxxxxxxxxxxxx http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |