Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Installing Oratcl-4.5-1 on RH 6.4

196 views
Skip to first unread message

Avi

unread,
Oct 11, 2013, 9:38:46 AM10/11/13
to
Hi

I installed this package:
rpm -ivh Oratcl-4.5-1.x86_64.rpm

The installation was to directory /usr/share/Oratcl4.5/.

When I ran the following, I got:
tclsh
% package require Oratcl
can't find package Oratcl

What am I doing missing?

Thanks
Avi

tombert

unread,
Oct 11, 2013, 10:06:11 AM10/11/13
to
Does your folder contain a pkgIndex.tcl file?

What tcl distribution are you using?

Normally packages are installed in the tcl path where it searches for a pkgIndex.tcl file: tcl/lib/<package>/pkgIndex.tcl

Maybe its only in the wrong location ...

Avi

unread,
Oct 11, 2013, 4:13:39 PM10/11/13
to
Hey Tombert

Thanks for your help.
Tcl 8.5.7.
The rpm installation created the following directory/file:
/usr/share/Oratcl4.5/pkgIndex.tcl

Executable tclsh8.5 is in /usr/bin.
What then would be the Tcl path?

Thanks again
Avi

Christian Gollwitzer

unread,
Oct 11, 2013, 5:03:54 PM10/11/13
to
Am 11.10.13 22:13, schrieb Avi:
> The rpm installation created the following directory/file:
> /usr/share/Oratcl4.5/pkgIndex.tcl


Try in tclsh:

lappend auto_path /usr/share
package require Oratcl

Christian

Avi

unread,
Oct 14, 2013, 9:56:01 AM10/14/13
to
Christian

That worked! Thanks.

However...
After I had made your proposed change, I got this error message:
Oratcl_Init(): Failed to load /usr/vendor/pkg/oracle/product/current/lib/libclntsh.so with error /usr/vendor/pkg/oracle/product/current/lib/libclntsh.so: cannot open shared object file: No such file or directory

I did find file libclntsh.so.11.1 in the directory so I created a link to it:
lrwxrwxrwx 1 root root 17 Oct 14 13:45 libclntsh.so -> libclntsh.so.11.1
-rw-r--r-- 1 root root 52439406 Sep 5 2010 libclntsh.so.11.1

I ran a few queries which worked well.
I hope that this is a valid fix.
We shall see.

Tombert and Christian -
Thanks again for your help.

Avi
0 new messages