473,503 Members | 10,245 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

/usr/lib64

We have recently installed DB2 8.1.6 on an Opteron with RHEL AS 3.3
for evaluation. We have run into a problem compiling Procs. The
compile fails looking for ctri.o. I believe the compile is looking in
/usr/lib, but the file actually exists in /usr/lib64. I haven't been
able to find where to change things so the compile will look in the
right lib. Is this parameter driven or should I change it with some
links?

thanks

Jack
Nov 12 '05 #1
5 3236
Hi,

Jack wrote:
We have recently installed DB2 8.1.6 on an Opteron with RHEL AS 3.3
for evaluation. We have run into a problem compiling Procs. The
compile fails looking for ctri.o. I believe the compile is looking in
/usr/lib, but the file actually exists in /usr/lib64. I haven't been
able to find where to change things so the compile will look in the
right lib. Is this parameter driven or should I change it with some
links?


have you checked "/etc/ld.so.conf" ? /usr/lib64 should be in there. If not,
insert it and run ldconfig.

Note: the locations on a RHEL may differ. I checked this one on a
SuSE-System

Norbert
Nov 12 '05 #2
Hi again,

Norbert Munkel wrote:
We have recently installed DB2 8.1.6 on an Opteron with RHEL AS 3.3
for evaluation. We have run into a problem compiling Procs. The
compile fails looking for ctri.o. I believe the compile is looking in
/usr/lib, but the file actually exists in /usr/lib64. I haven't been
able to find where to change things so the compile will look in the
right lib. Is this parameter driven or should I change it with some
links?


have you checked "/etc/ld.so.conf" ? /usr/lib64 should be in there. If
not, insert it and run ldconfig.


I checked the gcc manual and /etc/ld.so.conf is possibly not the point.

I don't know that much about c-compilers but if you are using gcc,

man gcc

should give you some options to specify libs and lib-directories.
Options I would have a look at are

-l and -L

From the Environment Section:

LIBRARY_PATH

so maybee

export LIBRARY_PATH=/usr/lib64:$LIBRARY_PATH

would do the job.

(check with "echo $LIBRARY_PATH")
Norbert

Nov 12 '05 #3
I believe there are some issues with using GNU compilers (ie, gcc) to
create DB2 stored procedure libraries. It's not that they can't be
used, but I believe they require some additional tweaking (ie, compiler
options) if you want to them to create binary files that DB2 can load.

Please don't hold me to that (it may be platform specific, ie, Windows
not Linux), but it's worth looking into.

Norbert Munkel wrote:
Hi again,

Norbert Munkel wrote:

We have recently installed DB2 8.1.6 on an Opteron with RHEL AS 3.3
for evaluation. We have run into a problem compiling Procs. The
compile fails looking for ctri.o. I believe the compile is looking in
/usr/lib, but the file actually exists in /usr/lib64. I haven't been
able to find where to change things so the compile will look in the
right lib. Is this parameter driven or should I change it with some
links?


have you checked "/etc/ld.so.conf" ? /usr/lib64 should be in there. If
not, insert it and run ldconfig.

I checked the gcc manual and /etc/ld.so.conf is possibly not the point.

I don't know that much about c-compilers but if you are using gcc,

man gcc

should give you some options to specify libs and lib-directories.
Options I would have a look at are

-l and -L

From the Environment Section:

LIBRARY_PATH

so maybee

export LIBRARY_PATH=/usr/lib64:$LIBRARY_PATH

would do the job.

(check with "echo $LIBRARY_PATH")
Norbert

Nov 12 '05 #4
Actually the solution is interesting.

When running DB2setup on an Opteron it actually installs DB2 as a 32
bit application. Because of this it tried to compile a stored
procedure it wanted to compile it as 32 bit. The 32 bit libraries did
not exist.

It is not in the IBM documentation, but you need to do a db2iupdt -w
64 <instance> to change DB2 to 64 bit. Now if you look at the
db2iupdt -h it will tell you that the -w parm is only valid for AIX or
Solaris, in this case it is valid for Linux as well. Once you update
the instance, you'll be running 64 bit and the compiles will work
correctly.

I found this documented through AMD and not IBM. (It may be there, I
just never found it). If you are curious what you are running do a
db2level command to find out.

jb

amurchis <am******@ca.ibm.com> wrote in message news:<41********@news3.prserv.net>...
I believe there are some issues with using GNU compilers (ie, gcc) to
create DB2 stored procedure libraries. It's not that they can't be
used, but I believe they require some additional tweaking (ie, compiler
options) if you want to them to create binary files that DB2 can load.

Please don't hold me to that (it may be platform specific, ie, Windows
not Linux), but it's worth looking into.

Norbert Munkel wrote:
Hi again,

Norbert Munkel wrote:

We have recently installed DB2 8.1.6 on an Opteron with RHEL AS 3.3
for evaluation. We have run into a problem compiling Procs. The
compile fails looking for ctri.o. I believe the compile is looking in
/usr/lib, but the file actually exists in /usr/lib64. I haven't been
able to find where to change things so the compile will look in the
right lib. Is this parameter driven or should I change it with some
links?

have you checked "/etc/ld.so.conf" ? /usr/lib64 should be in there. If
not, insert it and run ldconfig.

I checked the gcc manual and /etc/ld.so.conf is possibly not the point.

I don't know that much about c-compilers but if you are using gcc,

man gcc

should give you some options to specify libs and lib-directories.
Options I would have a look at are

-l and -L

From the Environment Section:

LIBRARY_PATH

so maybee

export LIBRARY_PATH=/usr/lib64:$LIBRARY_PATH

would do the job.

(check with "echo $LIBRARY_PATH")
Norbert

Nov 12 '05 #5
jb.. I have installed the latest level of db2 and I got 2 choices when
creating the db2instance , either you creates a 32 or a 64 bit
instances of db2. Default is 32-bits....
Search for db2iupdt at
http://publib.boulder.ibm.com/infoce...help/index.jsp
and you will find the correct information about db2iupdt.
The doc's are updated to the latest fixpak, look on the left and you
will see a 7 close to -w WordWidth ....
Nov 12 '05 #6

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

Similar topics

1
1770
by: Nathan Bates | last post by:
Are the Python developers running Python under Valgrind? If not, FYI, Valgrind is a excellent memory-checker for Linux. Valgrind is reporting a ton of memory problems. Worrisome are "Conditional...
0
1946
by: Rahsaan Page | last post by:
i am getting the folowing error when i try to start apache and all the library is on box /usr/local/apache2/bin/apachectl start httpd: Syntax error on line 81 of...
4
21566
by: saumya.agarwal | last post by:
Hi, I am executing a piece of code which continually tries to do the sprintf into the allocated buffer on a 64-bit RedHat linux machine. Here are the details of the system and the gcc version...
1
2043
by: neojia | last post by:
hi, I am not sure if this is the proper list to ask this question. If not, I would appreciate if you can point me to the right place. I am going to use pread64 open file as /proc/(pid)/mem,...
1
2448
by: sureshbup | last post by:
Hi to all, I am trying to install CPAN modules using the command perl -MCPAN -e 'install qw (Text::CSV_XS)' but i get the problem like this even i changed the working proxies but none is...
5
1272
by: luca72 | last post by:
Hello i can't import cherrypy2 but i don't know why this is the sys path: '', '/home/pirataja/opo.net/python/lib/python2.5/site-packages/ setuptools-0.6c7-py2.5.egg',...
10
2181
by: oktayarslan | last post by:
Hi all; I have a problem when inserting an element to a vector. All I want is reading some data from a file and putting them into a vector. But the program is crashing after pushing a data which...
0
921
by: js | last post by:
Hi list, Is it possible to change module search path (PYTHONPATH) built-in to Python interpreter? I thought I can change it with configure --libdir but it didn't work for me. I also tried...
2
1730
by: Mike Driscoll | last post by:
On Sep 25, 10:41 am, js <ebgs...@gmail.comwrote: Why not just add a custom path file (*.pth)? EasyInstall, wx, PyWin32 and others do it. Of course there's always sys.path.append as well. Mike
0
7067
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7264
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,...
1
6975
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...
0
7449
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...
0
4666
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...
0
3160
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...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.