[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-API] Intel CQM feature enabling in XenAPI



Forgot to attach the patch...

Thanks,
Euan

On Tue, Apr 08, 2014 at 03:45:40PM +0100, Euan Harris wrote:
> Hi,
> 
> > I once asked Zheng Li for help. Thanks for Zheng's help.:)
> > Zheng told me that we could build xenserver-core probject
> > (https://github.com/xenserver/xenserver-core), with which we should be
> > able to build most xenserver components (including xapi) on a vanilla
> > CentOS.
> > 
> > We tried this way, and xenserver-core could be built smoothly on CentOS6.5
> > or Ubuntu1304. But after that, XenAPI could not be built successfully, and
> > said some packages could not be found (stdext, xml-light2, uuid, etc..)
> 
> 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,
> Euan

Attachment: ocaml-opasswd.patch
Description: Text document

_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.