# Install xmlstarlet to the TSSW Jenkins server

XMLWordPrintable

## Details

• Type: Improvement
• Status: Done
• Resolution: Done
• Fix Version/s: None
• Component/s:
• Labels:
None
• Team:
SQuaRE

## Description

Please re-install xmlstarlet to the TSSW Jenkins server, so it is available to jobs?
http://xmlstar.sourceforge.net/doc/UG/xmlstarlet-ug.html

This is a package that is used heavily in the ts_xml project. I've tried to install it via the job itself, but I can't get it work.

## Activity

Hide
Simon Krughoff added a comment - - edited

Mirrored here from slack for posterity.

Rob Bovill you don't need sudo to install from source. Following is a snippet that shows how you could do it:

 for i in bin lib build; do  mkdir -p ${HOME}/${i} done LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${HOME}/lib; export LD_LIBRARY_PATH PATH=${PATH}:${HOME}/bin; export PATH   cd ${HOME}/build git clone git://xmlstar.git.sourceforge.net/gitroot/xmlstar/xmlstar   curl ftp://xmlsoft.org/libxml2/libxml2-2.9.9.tar.gz -o libxml2-2.9.9.tar.gz curl ftp://xmlsoft.org/libxslt/libxslt-1.1.33.tar.gz -o libxslt-1.1.33.tar.gz     tar xvpfz libxml2-2.9.9.tar.gz cd libxml2-2.9.9 ./configure make cd ..   tar xvpfz libxslt-1.1.33.tar.gz cd libxslt-1.1.33 ./configure --with-libxml-src=${HOME}/build/libxml2-2.9.9 make cd ..   cd xmlstar autoreconf -sif ./configure --with-libxml-src=${HOME}/build/libxml2-2.9.9 --with-libxslt-src=${HOME}/build/libxslt-1.1.33 make cd ..   for i in xslt exslt; do  cp -a ${HOME}/build/libxslt-1.1.33/lib${i}/.libs/*.so* ${HOME}/lib done   install -m0755${HOME}/build/xmlstar/xml ${HOME}/bin  Show Simon Krughoff added a comment - - edited Mirrored here from slack for posterity. Rob Bovill you don't need sudo to install from source. Following is a snippet that shows how you could do it: for i in bin lib build; do mkdir -p${HOME}/${i} done LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${HOME}/lib; export LD_LIBRARY_PATH PATH=${PATH}:${HOME}/bin; export PATH cd${HOME}/build git clone git://xmlstar.git.sourceforge.net/gitroot/xmlstar/xmlstar   curl ftp://xmlsoft.org/libxml2/libxml2-2.9.9.tar.gz -o libxml2-2.9.9.tar.gz curl ftp://xmlsoft.org/libxslt/libxslt-1.1.33.tar.gz -o libxslt-1.1.33.tar.gz     tar xvpfz libxml2-2.9.9.tar.gz cd libxml2-2.9.9 ./configure make cd ..   tar xvpfz libxslt-1.1.33.tar.gz cd libxslt-1.1.33 ./configure --with-libxml-src=${HOME}/build/libxml2-2.9.9 make cd .. cd xmlstar autoreconf -sif ./configure --with-libxml-src=${HOME}/build/libxml2-2.9.9 --with-libxslt-src=${HOME}/build/libxslt-1.1.33 make cd .. for i in xslt exslt; do cp -a${HOME}/build/libxslt-1.1.33/lib${i}/.libs/*.so*${HOME}/lib done   install -m0755 ${HOME}/build/xmlstar/xml${HOME}/bin
Hide
Simon Krughoff added a comment -

Rob Bovill can we close this out, or do you need more help with it?

Show
Simon Krughoff added a comment - Rob Bovill can we close this out, or do you need more help with it?
Hide
Rob Bovill added a comment -

I thought this request was denied?  So there's nothing left to do on it, right?

Show
Rob Bovill added a comment - I thought this request was denied?  So there's nothing left to do on it, right?
Hide
Frossie Economou added a comment -

Rob Bovill the problem statement was that your jobs need xmlstarlet to run. While we don't want to install it on the Jenkins master, we do want to make sure your jobs run, which is why we suggested you build it into your container. I believe Adam Thornton and Simon Krughoff offered you some pointers on Slack on how to do that. Simon is enquiring as to whether you have succeeded in doing so, at which point the problem is solved.

Show
Frossie Economou added a comment - Rob Bovill the problem statement was that your jobs need xmlstarlet to run. While we don't want to install it on the Jenkins master, we do want to make sure your jobs run, which is why we suggested you build it into your container. I believe Adam Thornton and Simon Krughoff offered you some pointers on Slack on how to do that. Simon is enquiring as to whether you have succeeded in doing so, at which point the problem is solved.
Hide
Simon Krughoff added a comment -

See DM-17349 for implementation by Rob Bovill

Show
Simon Krughoff added a comment - See DM-17349 for implementation by Rob Bovill

## People

• Assignee:
Joshua Hoblitt
Reporter:
Rob Bovill
Watchers:
Andy Clements, Frossie Economou, Joshua Hoblitt, Rob Bovill, Simon Krughoff, Wil O'Mullane