Dear David

 

There is some weirdness to do with how Ubuntu lay out their X-window stuff, but in this case I have a feeling the problem is more to do with it having it’s own libtool – when I was trying to make the bootstrap installer work on Ubuntu 14.4r2 I had to add the following hack:

 

 

    import os

    import platform

 

    # Ubuntu & Xrender - libtool is broken - replace with system one if

    # installed...

 

    if 'xrender' in os.path.split(os.getcwd())[-1] and \

      'Ubuntu' in platform.platform() and os.path.exists('libtool'):

      if os.path.exists(os.path.join('/', 'usr', 'bin', 'libtool')):

        self.log.write('Removing xrender libtool; replace with system\n')

        os.remove('libtool')

        os.symlink(os.path.join('/', 'usr', 'bin', 'libtool'), 'libtool')

      else:

        self.log.write('Cannot removing xrender libtool; not installed\n')

 

    return

 

Please try doing the same by hand & see if it makes the problem go away.

 

You may find an alternative solution is to install the dependencies on the machine through apt-get & install cctbx using the system Python

 

Overall this may be less painful…

 

best wishes Graeme

 

 

From: [email protected] [mailto:[email protected]] On Behalf Of Dave Lodowski
Sent: 16 March 2015 15:57
To: [email protected]
Subject: [cctbxbb] compilation issues

 

Hi, sorry if this is a repeat, but an email sent to the [email protected] bounced back to me. We are attempting to install the DIALS package and CCTBX is required for compilation. During compilation of CCTBX, Xrender fails to find the X windows server. OS is Ubuntu LTS 12.04.5

 

text from console upon failure:

 

 Installing Xrender...

  log file is /home/dave/cctbx/build/base_tmp/Xrender_install_log

  getting package xrender-0.8.3.tar.gz...

    downloading from http://cci.lbl.gov/cctbx_dependencies : local copy is current

    using ./xrender-0.8.3.tar.gz (cached)

  installing xrender-0.8.3.tar.gz...

Traceback (most recent call last):

  File "../auto_build/install", line 9, in <module>

    install_base_packages.installer(args=sys.argv, log=sys.stdout)

  File "../auto_build/install_base_packages.py", line 161, in __init__

    self.build_dependencies(packages=packages)

  File "../auto_build/install_base_packages.py", line 505, in build_dependencies

    getattr(self, 'build_%s'%i)()

  File "../auto_build/install_base_packages.py", line 781, in build_render

    self.build_compiled_package_simple(pkg_name=pkg, pkg_name_label=name)

  File "../auto_build/install_base_packages.py", line 407, in build_compiled_package_simple

    log=pkg_log)

  File "../auto_build/install_base_packages.py", line 392, in configure_and_build

    self.call("./configure %s" % " ".join(list(config_args)), log=log)

  File "../auto_build/install_base_packages.py", line 243, in call

    return call(args, log=log, verbose=self.verbose, **kwargs)

  File "../auto_build/installer_utils.py", line 71, in call

    raise RuntimeError("Call to '%s' failed with exit code %d" % (args, rc))

RuntimeError: Call to './configure --prefix="/home/dave/cctbx/build/base"' failed with exit code 1

 

​Log file indicates everything fine till X is required then :​

checking for X... no

configure: error: X is required, but it was either disabled or not found.

 

​any suggestions as to how to proceed would be appreciated

thanks,

--David Lodowski

 

 

-- 

This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom