develooper Front page | perl.dbi.users | Postings from January 2023

Re: Oracle connection error

Thread Previous
From:
Syed Abdulla
Date:
January 13, 2023 17:59
Subject:
Re: Oracle connection error
Message ID:
CAGbX+DcvMGB9MiaTWZ9rvy05jvkqwAAJBL7ng+++dSDZ6EEDMg@mail.gmail.com
Tough luck! That isn't working either. I tried:

make realclean
  perl Makefile.PL LINKTYPE=static
  make
  make perl       (you'll need to use and install _this_ new perl binary)
  make test
  make -f Makefile.aperl inst_perl MAP_TARGET=perl  (install new perl)
  make install

and then I see these errors

install_driver(Oracle) failed: Can't locate loadable object for module
DBD::Oracle in @INC (@INC contains: /usr/bin/perl
/usr/local/lib64/perl5 /usr/local/share/perl5
/usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl
/usr/lib64/perl5 /usr/share/perl5) at (eval 15) line 3.
Compilation failed in require at (eval 15) line 3.
Perhaps a module that DBD::Oracle requires hasn't been fully installed
 at /usr/local/share/perl5/Ora2Pg/Oracle.pm line 141.


On Fri, Jan 13, 2023 at 9:12 AM Richard Dice <rdice@pobox.com> wrote:

> Where is the library installed to?  In what directory?
>
> Is that directory referenced in the /etc/ld.so.conf file?
>
> If not, add it and then run "ldconfig" command, then re-try.
>
>
>
> On Thu, Jan 12, 2023 at 11:32 AM Syed Abdulla <syed.abdulla08@gmail.com>
> wrote:
>
>> Thank you Clive. I installed the library libnsl.x86_64. Below I pasted
>> outputs from the commands. I logged in as root.
>>
>> *# dnf install libnsl.x86_64*
>> *Last metadata expiration check: 0:04:34 ago on Thu 12 Jan 2023 04:22:12
>> PM UTC.*
>> *Package libnsl-2.28-189.5.el8_6.x86_64 is already installed.*
>> *Dependencies resolved.*
>> *Nothing to do.*
>> *Complete!*
>>
>> *#perl -MCPAN -e shell*
>> *CPAN>get DBD::Oracle*
>> *CPAN>quit*
>> *#cd /root/.cpan/build/DBD-Oracle-1.83-0*
>> *#perl Makefile.PL*
>>
>> I see the below error again:
>> */usr/bin/ld: cannot find -lnsl*
>> *collect2: error: ld returned 1 exit status*
>> *make: *** [Makefile:524: blib/arch/auto/DBD/Oracle/Oracle.so] Error 1*
>>
>> *Please help to resolve this issue.*
>> *Thanks*
>>
>> On Thu, Jan 12, 2023 at 9:50 PM Clive Eisen <clive@serendipita.com>
>> wrote:
>>
>>> dnf install libnsl.x86_64
>>>
>>> On 12 Jan 2023, at 14:25, Syed Abdulla <syed.abdulla08@gmail.com> wrote:
>>>
>>> Hi,
>>>
>>> While installing Perl DBI module to connect to Oracle 19c on RedHat 8
>>> VM, I see the below error and the installation fails.
>>>
>>> /usr/bin/ld: cannot find -lnsl
>>> collect2: error: ld returned 1 exit status
>>> make: *** [Makefile:524: blib/arch/auto/DBD/Oracle/Oracle.so
>>> <http://oracle.so/>] Error 1
>>>  ZARQUON/DBD-Oracle-1.83.tar.gz
>>>  /usr/bin/make -- NOT OK
>>>
>>> Has anyone seen this error. Please help to resolve this issue.
>>>
>>> Thanks.
>>>
>>> --
>>>
>>> This (Quran) is a Message for mankind (and a clear proof against them),
>>> in order that they may be warned thereby, and that they may know that He is
>>> the only One God - (The Creator, Sustainer of all and none has the right to
>>> be worshipped but GOD), and that men of understanding may take heed.
>>>
>>> Holy Quran
>>>
>>>
>>>
>>
>> --
>>
>> This (Quran) is a Message for mankind (and a clear proof against them),
>> in order that they may be warned thereby, and that they may know that He is
>> the only One God - (The Creator, Sustainer of all and none has the right to
>> be worshipped but GOD), and that men of understanding may take heed.
>>
>> Holy Quran
>>
>

-- 

This (Quran) is a Message for mankind (and a clear proof against them), in
order that they may be warned thereby, and that they may know that He is
the only One God - (The Creator, Sustainer of all and none has the right to
be worshipped but GOD), and that men of understanding may take heed.

Holy Quran

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About