473,765 Members | 1,959 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compiling Source with alternate Openssl lib

Hi All -

I'm trying to compile Python on a Centos machine (RHEL) 3.8 for a
hosting account that I just set up and I'm having 2 issues:

1. I ran into an issue with the "hashlib" module [I think] because it
bumps it up against an *OLD* openssl lib (like, Feb. 2003). So I
installed a newer openssl lib, but when I recompiled python it still
used the old library. So I tried ./configure again with the flag: "-
with-openssl-libs=/new/directory" but it still didn't work. Any idea
how I might be able to remedy this? I have a working solution right
now: I've commented out the last 2 lines of hashlib.py, but I'd rather
not do that if I didn't have to.

2. As part of this process, I installed "easy_insta ll" and I was
trying to download psycopg2 but I got the error: "PyDateTime API
defined but not used" when trying to compile. I've had this problem
before when trying to compile psycopg2 and it was because I didn't
have the postgres header libs installed (libpq-dev) ... but that's on
a debian box, and I can't figure out how to fix it on the RHEL one.

I know the 2nd question might not belong in this group, but I thought
I'd ask just in case someone ran into this before or might have any
suggestions.

Thanks in advance (as always!) for your help!

Kevin

Aug 28 '07 #1
1 1678
On Aug 28, 2:09 pm, "Kevin T. Ryan" <kevin.t.r...@g mail.comwrote:
Hi All -

I'm trying to compile Python on a Centos machine (RHEL) 3.8 for a
hosting account that I just set up and I'm having 2 issues:

1. I ran into an issue with the "hashlib" module [I think] because it
bumps it up against an *OLD* openssl lib (like, Feb. 2003). So I
installed a newer openssl lib, but when I recompiled python it still
used the old library. So I tried ./configure again with the flag: "-
with-openssl-libs=/new/directory" but it still didn't work. Any idea
how I might be able to remedy this? I have a working solution right
now: I've commented out the last 2 lines of hashlib.py, but I'd rather
not do that if I didn't have to.

2. As part of this process, I installed "easy_insta ll" and I was
trying to download psycopg2 but I got the error: "PyDateTime API
defined but not used" when trying to compile. I've had this problem
before when trying to compile psycopg2 and it was because I didn't
have the postgres header libs installed (libpq-dev) ... but that's on
a debian box, and I can't figure out how to fix it on the RHEL one.

I know the 2nd question might not belong in this group, but I thought
I'd ask just in case someone ran into this before or might have any
suggestions.

Thanks in advance (as always!) for your help!

Kevin
In case this helps anyone, I figured it out ... unfortunately, my dumb
a$$ didn't install Postgres before I tried to install the psycopg2
module! I then still had issues, but after adding the postgres 'lib'
directory to the ld.so.config file (eg, cat "/dir/to/pgsql/lib" >/
etc/ld.so.config and running ldconfig all is well! Thanks,

Aug 29 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
6910
by: Andres Rosado-Sepulveda | last post by:
Hello, I'm having trouble compiling PHP 4.3.4 on Solaris 8. This is the error message it is showing: -- start -- Undefined first referenced symbol in file php_parse_date ext/standard/datetime.o ld: fatal: Symbol referencing errors. No output written to sapi/cli/php
8
3617
by: Huihong | last post by:
Please check out our newly released source code search engine here, http://www.codase.com e.g., search socket method call, http://www.codase.com/search/call?name=socket&owner=&lang=*&type=&parameters=&obj= Rather than treating code as text, Codase understands programming languages, and treats code as code, the way it's supposed to be. This unique and syntax-aware approach provides the most accurate and detailed search results with...
0
9745
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile. I need it to be compiled with threads. Anyone have any wisdom on how best to do this? Here's a transcript of my latest attempt. It's long; you might want to skip to the bottom, where I try "make" and the fatal errors start happening.
2
5907
by: Keith Bottner | last post by:
I just reinstalled my system and am in the process of getting PostgreSQL up and running again. During compilation of Postgres I received the following error: .... checking for main in -lunix... no checking for library containing crypt... -lcrypt checking for library containing fdatasync... none required checking for shmget in -lcygipc... no checking for readline... yes (-lreadline)
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10160
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9951
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9832
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7378
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5275
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2805
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.