Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

libxml2 version wrong for ckanext-spatial #97

Open
morty opened this issue Aug 26, 2015 · 2 comments
Open

libxml2 version wrong for ckanext-spatial #97

morty opened this issue Aug 26, 2015 · 2 comments

Comments

@morty
Copy link
Contributor

morty commented Aug 26, 2015

Needs this interesting work around:

https://ckanext-spatial.readthedocs.org/en/latest/install.html#when-running-the-spatial-harvesters

@CarlQLange
Copy link
Contributor

we just run this in a shell provisioner for after the puppet provision:

libxml_path=$(find "${ROOT_DIR}/lib" -maxdepth 1 -type f -name 'libxml*')

if [ ! -f "$libxml_path" ]; then
  echo "Error: Unable to find libxml file, aborting." >&2
  exit 1
fi

libxml_name=$(basename "$libxml_path" '.tar.gz')
libxml_install_dir=$(dirname $(find /usr -name "libxml2.so"))

echo "Installing a working version of $libxml_name for spatial harvesters ..."

if [ ! -d "${ROOT_DIR}/lib/${libxml_name}" ]; then
  echo "Unpacking $(basename ${libxml_path})"
  tar xfz "$libxml_path" -C "${ROOT_DIR}/lib"
fi

cd "${ROOT_DIR}/lib/${libxml_name}"

./configure --libdir="$libxml_install_dir"
make
make install

if ! xmllint --version; then
  echo "Error installing ${libxml_name}, aborting." >&2
  exit 1
fi

obviously with libxml2-2.9.0.tar.gz at the correct path.

for real though, this is a crazy requirement

@davidread davidread changed the title libxml2 version wrong for ckanext-spacial libxml2 version wrong for ckanext-spatial Sep 16, 2015
@davidread
Copy link
Contributor

Cheers for the shell script. A PR for one integrated with Puppet is even better! ;-)

I notice that this problem will be gone when we go to ubuntu 14.04, since it comes with libxml2 2.9.1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants