zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Holstad <erikhols...@gmail.com>
Subject Re: Error running contrib tests
Date Tue, 24 Nov 2009 02:25:35 GMT
Have been messing around to try to get it included in the setup.py script.
But not sure
if it is good to have it there since writing to /usr/ld.so.conf and
reloading the /sbin/ldconfig
requires sudo status. But on the other hand that is needed to install from
the beginning.

I could add something like this to the end of the setup file

print "Setting up dependencies"
try:
  f = open("/etc/ld.so.conf", 'r+')
  content = f.read()
  path = "/usr/local/lib"
  if content.find(path) == -1:
    f.write(path)

except Exception, e:
  pass

import subprocess
subprocess.call(['sudo', '/sbin/ldconfig'])

Erik

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message