AG2 on RH9

Robert Olson olson at mcs.anl.gov
Tue Jul 8 11:03:54 CDT 2003


I've been doing quite a bit of work with AG2 on RH9 systems; it works well. 
The two main caveats are that the pyOpenSSL build needs to know about RH9 
systems to define some symbols properly, and that as with the 7.3 systems 
an updated glibc needs to be installed for threading to work properly.

Here is the patch required for pyOPenSSL to build on RH9; not committed as 
I have not tested it on other versions. It's possible the test needs to be 
better done as well.

--bob

RCS file: /cvs/fl/pyOpenSSL/setup.py,v
retrieving revision 1.3
diff -c -r1.3 setup.py
*** setup.py    20 May 2003 21:55:10 -0000      1.3
--- setup.py    8 Jul 2003 16:01:48 -0000
***************
*** 52,57 ****
--- 52,73 ----
   IncludeDirs = [r'c:\temp\ssl\openssl-0.9.6i\inc32']
   LibraryDirs = [r'c:\temp\ssl\openssl-0.9.6i\out32']

+ Defines = []
+
+ #
+ # Test for Redhat9; its stock openssl build fails unless
+ # the kerberos define is removed.
+ #
+
+ try:
+     f = open("/etc/issue")
+     l = f.readline()
+     if l.startswith("Red Hat Linux release 9 (Shrike)"):
+       Defines.append(("OPENSSL_NO_KRB5", 1))
+     f.close()
+ except:
+     pass
+

   # Add more platforms here when needed
   if os.name == 'nt' or sys.platform == 'win32':
***************
*** 62,67 ****
--- 78,87 ----
   if sys.platform == 'darwin':
       IncludeDirs = ['/sw/include']
       LibraryDirs = ['/sw/lib']
+ # Doesn't make use of pkgconfig easily, so fudge it
+ elif os.name == 'posix':
+     IncludeDirs = ['/usr/kerberos/include']
+     LibraryDirs = ['/usr/kerberos/lib']

   def mkExtension(name):
       import string
***************
*** 69,74 ****
--- 89,95 ----
       src = globals()['%s_src' % string.lower(name)]
       dep = globals()['%s_dep' % string.lower(name)]
       return Extension(modname, src, libraries=Libraries, depends=dep,
+                    define_macros = Defines,
                        include_dirs=IncludeDirs, library_dirs=LibraryDirs)

   setup(name='pyOpenSSL', version='0.5.1',

At 10:58 AM 7/8/2003 -0500, Eric Olson wrote:
>Bob,
>
>Lloyd at LBNL has been asking about using AG2.0 on Redhat 9.  I think
>you've been trying it on RH9.  Has this been tested much and are there any
>issues that would prevent them from going to Redhat 9 on their room
>node? (planning on doing it within a month or so)
>
>Eric




More information about the ag-dev mailing list