Re: Oracle connection error

[email protected] (Syed Abdulla) Thu, 12 Jan 2023 22:02:26 +0530
Newsgroups perl.dbi.users
Message-ID <CAGbX+DcwTkBuT4HTtBm_iXLexwoh_FWpMLmefMsuCtD31hrzHQ@mail.gmail.com>
--00000000000060a55b05f213aa5c
Content-Type: text/plain; charset="UTF-8"

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 <[email protected]> wrote:

> dnf install libnsl.x86_64
>
> On 12 Jan 2023, at 14:25, Syed Abdulla <[email protected]> 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

--00000000000060a55b05f213aa5c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div di=
r=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr">Thank you Clive. I installed th=
e library libnsl.x86_64. Below I pasted outputs from the commands. I logged=
 in as root.</div><div dir=3D"ltr"><br><div><div><b><i># dnf install libnsl=
.x86_64</i></b></div><div><b><i>Last metadata expiration check: 0:04:34 ago=
 on Thu 12 Jan 2023 04:22:12 PM UTC.</i></b></div><div><b><i>Package libnsl=
-2.28-189.5.el8_6.x86_64 is already installed.</i></b></div><div><b><i>Depe=
ndencies resolved.</i></b></div><div><b><i>Nothing to do.</i></b></div><div=
><b><i>Complete!</i></b></div></div><div><br></div><div><b><i>#perl -MCPAN =
-e shell</i></b></div><div><b><i>CPAN&gt;<span style=3D"background-color:rg=
b(245,245,245);color:rgb(51,51,51);font-family:Menlo,Monaco,Consolas,&quot;=
Courier New&quot;,monospace;font-size:13px">get DBD::Oracle</span></i></b><=
/div><div><b><i>CPAN&gt;quit</i></b></div><div><b><i>#cd=C2=A0/root/.cpan/b=
uild/DBD-Oracle-1.83-0</i></b></div><div><b><i>#perl Makefile.PL</i></b></d=
iv><div><br></div><div>I see the below error again:</div><div><div><b><i>/u=
sr/bin/ld: cannot find -lnsl</i></b></div><div><b><i>collect2: error: ld re=
turned 1 exit status</i></b></div><div><b><i>make: *** [Makefile:524: blib/=
arch/auto/DBD/Oracle/Oracle.so] Error 1</i></b></div></div><div><b><i><br><=
/i></b></div><div><b><i>Please help to resolve this issue.</i></b></div><di=
v><b><i>Thanks</i></b></div></div></div></div></div></div></div></div><br><=
div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, Jan=
 12, 2023 at 9:50 PM Clive Eisen &lt;<a href=3D"mailto:[email protected]=
m">[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail=
_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204=
,204);padding-left:1ex"><div>dnf install libnsl.x86_64<br><div><br><blockqu=
ote type=3D"cite"><div>On 12 Jan 2023, at 14:25, Syed Abdulla &lt;<a href=
=3D"mailto:[email protected]" target=3D"_blank">syed.abdulla08@gmail=
.com</a>&gt; wrote:</div><br><div><div dir=3D"ltr"><div dir=3D"ltr">Hi,<div=
><br></div><div><span style=3D"font-family:-apple-system,system-ui,BlinkMac=
SystemFont,&quot;Segoe UI&quot;,Roboto,&quot;Helvetica Neue&quot;,&quot;Fir=
a Sans&quot;,Ubuntu,Oxygen,&quot;Oxygen Sans&quot;,Cantarell,&quot;Droid Sa=
ns&quot;,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Seg=
oe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;,&quot;Lucida Grande&quot;,Hel=
vetica,Arial,sans-serif;font-size:14px">While installing Perl DBI module to=
 connect to Oracle 19c on RedHat 8 VM, I see the below error and the instal=
lation fails.</span><br style=3D"box-sizing:inherit;font-family:-apple-syst=
em,system-ui,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,&quot;Helvetica=
 Neue&quot;,&quot;Fira Sans&quot;,Ubuntu,Oxygen,&quot;Oxygen Sans&quot;,Can=
tarell,&quot;Droid Sans&quot;,&quot;Apple Color Emoji&quot;,&quot;Segoe UI =
Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;,&quot;Lu=
cida Grande&quot;,Helvetica,Arial,sans-serif;font-size:14px;line-height:inh=
erit"><br style=3D"box-sizing:inherit;font-family:-apple-system,system-ui,B=
linkMacSystemFont,&quot;Segoe UI&quot;,Roboto,&quot;Helvetica Neue&quot;,&q=
uot;Fira Sans&quot;,Ubuntu,Oxygen,&quot;Oxygen Sans&quot;,Cantarell,&quot;D=
roid Sans&quot;,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&q=
uot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;,&quot;Lucida Grande&qu=
ot;,Helvetica,Arial,sans-serif;font-size:14px;line-height:inherit"><span st=
yle=3D"font-family:-apple-system,system-ui,BlinkMacSystemFont,&quot;Segoe U=
I&quot;,Roboto,&quot;Helvetica Neue&quot;,&quot;Fira Sans&quot;,Ubuntu,Oxyg=
en,&quot;Oxygen Sans&quot;,Cantarell,&quot;Droid Sans&quot;,&quot;Apple Col=
or Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;=
Segoe UI Symbol&quot;,&quot;Lucida Grande&quot;,Helvetica,Arial,sans-serif;=
font-size:14px">/usr/bin/ld: cannot find -lnsl</span><br style=3D"box-sizin=
g:inherit;font-family:-apple-system,system-ui,BlinkMacSystemFont,&quot;Sego=
e UI&quot;,Roboto,&quot;Helvetica Neue&quot;,&quot;Fira Sans&quot;,Ubuntu,O=
xygen,&quot;Oxygen Sans&quot;,Cantarell,&quot;Droid Sans&quot;,&quot;Apple =
Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Emoji&quot;,&qu=
ot;Segoe UI Symbol&quot;,&quot;Lucida Grande&quot;,Helvetica,Arial,sans-ser=
if;font-size:14px;line-height:inherit"><span style=3D"font-family:-apple-sy=
stem,system-ui,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,&quot;Helveti=
ca Neue&quot;,&quot;Fira Sans&quot;,Ubuntu,Oxygen,&quot;Oxygen Sans&quot;,C=
antarell,&quot;Droid Sans&quot;,&quot;Apple Color Emoji&quot;,&quot;Segoe U=
I Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;,&quot;=
Lucida Grande&quot;,Helvetica,Arial,sans-serif;font-size:14px">collect2: er=
ror: ld returned 1 exit status</span><br style=3D"box-sizing:inherit;font-f=
amily:-apple-system,system-ui,BlinkMacSystemFont,&quot;Segoe UI&quot;,Robot=
o,&quot;Helvetica Neue&quot;,&quot;Fira Sans&quot;,Ubuntu,Oxygen,&quot;Oxyg=
en Sans&quot;,Cantarell,&quot;Droid Sans&quot;,&quot;Apple Color Emoji&quot=
;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symb=
ol&quot;,&quot;Lucida Grande&quot;,Helvetica,Arial,sans-serif;font-size:14p=
x;line-height:inherit"><span style=3D"font-family:-apple-system,system-ui,B=
linkMacSystemFont,&quot;Segoe UI&quot;,Roboto,&quot;Helvetica Neue&quot;,&q=
uot;Fira Sans&quot;,Ubuntu,Oxygen,&quot;Oxygen Sans&quot;,Cantarell,&quot;D=
roid Sans&quot;,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&q=
uot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;,&quot;Lucida Grande&qu=
ot;,Helvetica,Arial,sans-serif;font-size:14px">make: *** [Makefile:524: bli=
b/arch/auto/DBD/Oracle/</span><a href=3D"http://oracle.so/" style=3D"box-si=
zing:inherit;font-size:14px;word-break:normal;font-family:-apple-system,sys=
tem-ui,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,&quot;Helvetica Neue&=
quot;,&quot;Fira Sans&quot;,Ubuntu,Oxygen,&quot;Oxygen Sans&quot;,Cantarell=
,&quot;Droid Sans&quot;,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&=
quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;,&quot;Lucida G=
rande&quot;,Helvetica,Arial,sans-serif;line-height:inherit" target=3D"_blan=
k">Oracle.so</a><span style=3D"font-family:-apple-system,system-ui,BlinkMac=
SystemFont,&quot;Segoe UI&quot;,Roboto,&quot;Helvetica Neue&quot;,&quot;Fir=
a Sans&quot;,Ubuntu,Oxygen,&quot;Oxygen Sans&quot;,Cantarell,&quot;Droid Sa=
ns&quot;,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Seg=
oe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;,&quot;Lucida Grande&quot;,Hel=
vetica,Arial,sans-serif;font-size:14px">] Error 1</span><br style=3D"box-si=
zing:inherit;font-family:-apple-system,system-ui,BlinkMacSystemFont,&quot;S=
egoe UI&quot;,Roboto,&quot;Helvetica Neue&quot;,&quot;Fira Sans&quot;,Ubunt=
u,Oxygen,&quot;Oxygen Sans&quot;,Cantarell,&quot;Droid Sans&quot;,&quot;App=
le Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Emoji&quot;,=
&quot;Segoe UI Symbol&quot;,&quot;Lucida Grande&quot;,Helvetica,Arial,sans-=
serif;font-size:14px;line-height:inherit"><span style=3D"font-family:-apple=
-system,system-ui,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,&quot;Helv=
etica Neue&quot;,&quot;Fira Sans&quot;,Ubuntu,Oxygen,&quot;Oxygen Sans&quot=
;,Cantarell,&quot;Droid Sans&quot;,&quot;Apple Color Emoji&quot;,&quot;Sego=
e UI Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;,&qu=
ot;Lucida Grande&quot;,Helvetica,Arial,sans-serif;font-size:14px">=C2=A0ZAR=
QUON/DBD-Oracle-1.83.tar.gz</span><br style=3D"box-sizing:inherit;font-fami=
ly:-apple-system,system-ui,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,&=
quot;Helvetica Neue&quot;,&quot;Fira Sans&quot;,Ubuntu,Oxygen,&quot;Oxygen =
Sans&quot;,Cantarell,&quot;Droid Sans&quot;,&quot;Apple Color Emoji&quot;,&=
quot;Segoe UI Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&=
quot;,&quot;Lucida Grande&quot;,Helvetica,Arial,sans-serif;font-size:14px;l=
ine-height:inherit"><span style=3D"font-family:-apple-system,system-ui,Blin=
kMacSystemFont,&quot;Segoe UI&quot;,Roboto,&quot;Helvetica Neue&quot;,&quot=
;Fira Sans&quot;,Ubuntu,Oxygen,&quot;Oxygen Sans&quot;,Cantarell,&quot;Droi=
d Sans&quot;,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot=
;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;,&quot;Lucida Grande&quot;=
,Helvetica,Arial,sans-serif;font-size:14px">=C2=A0/usr/bin/make -- NOT OK</=
span><br style=3D"box-sizing:inherit;font-family:-apple-system,system-ui,Bl=
inkMacSystemFont,&quot;Segoe UI&quot;,Roboto,&quot;Helvetica Neue&quot;,&qu=
ot;Fira Sans&quot;,Ubuntu,Oxygen,&quot;Oxygen Sans&quot;,Cantarell,&quot;Dr=
oid Sans&quot;,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&qu=
ot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;,&quot;Lucida Grande&quo=
t;,Helvetica,Arial,sans-serif;font-size:14px;line-height:inherit"><br style=
=3D"box-sizing:inherit;font-family:-apple-system,system-ui,BlinkMacSystemFo=
nt,&quot;Segoe UI&quot;,Roboto,&quot;Helvetica Neue&quot;,&quot;Fira Sans&q=
uot;,Ubuntu,Oxygen,&quot;Oxygen Sans&quot;,Cantarell,&quot;Droid Sans&quot;=
,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Em=
oji&quot;,&quot;Segoe UI Symbol&quot;,&quot;Lucida Grande&quot;,Helvetica,A=
rial,sans-serif;font-size:14px;line-height:inherit"><span style=3D"font-fam=
ily:-apple-system,system-ui,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,=
&quot;Helvetica Neue&quot;,&quot;Fira Sans&quot;,Ubuntu,Oxygen,&quot;Oxygen=
 Sans&quot;,Cantarell,&quot;Droid Sans&quot;,&quot;Apple Color Emoji&quot;,=
&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol=
&quot;,&quot;Lucida Grande&quot;,Helvetica,Arial,sans-serif;font-size:14px"=
>Has anyone seen this error. Please help to resolve this issue.</span><br s=
tyle=3D"box-sizing:inherit;font-family:-apple-system,system-ui,BlinkMacSyst=
emFont,&quot;Segoe UI&quot;,Roboto,&quot;Helvetica Neue&quot;,&quot;Fira Sa=
ns&quot;,Ubuntu,Oxygen,&quot;Oxygen Sans&quot;,Cantarell,&quot;Droid Sans&q=
uot;,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe U=
I Emoji&quot;,&quot;Segoe UI Symbol&quot;,&quot;Lucida Grande&quot;,Helveti=
ca,Arial,sans-serif;font-size:14px;line-height:inherit"><span style=3D"font=
-family:-apple-system,system-ui,BlinkMacSystemFont,&quot;Segoe UI&quot;,Rob=
oto,&quot;Helvetica Neue&quot;,&quot;Fira Sans&quot;,Ubuntu,Oxygen,&quot;Ox=
ygen Sans&quot;,Cantarell,&quot;Droid Sans&quot;,&quot;Apple Color Emoji&qu=
ot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Sy=
mbol&quot;,&quot;Lucida Grande&quot;,Helvetica,Arial,sans-serif;font-size:1=
4px"><br></span></div><div><span style=3D"font-family:-apple-system,system-=
ui,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,&quot;Helvetica Neue&quot=
;,&quot;Fira Sans&quot;,Ubuntu,Oxygen,&quot;Oxygen Sans&quot;,Cantarell,&qu=
ot;Droid Sans&quot;,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot=
;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;,&quot;Lucida Grand=
e&quot;,Helvetica,Arial,sans-serif;font-size:14px">Thanks.</span><br clear=
=3D"all"><div><br></div>-- <br><div dir=3D"ltr"><div>=C2=A0</div><div>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 onl=
y One God - (The Creator, Sustainer of all and none has the right to be wor=
shipped but GOD), and that men of understanding may take heed. </div><div>=
=C2=A0</div><div>Holy Quran</div></div></div></div></div>
</div></blockquote></div><br></div></blockquote></div><br clear=3D"all"><di=
v><br></div>-- <br><div dir=3D"ltr" class=3D"gmail_signature"><div>=C2=A0</=
div><div>This (Quran) is a Message for mankind (and a clear proof against t=
hem), 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 r=
ight to be worshipped but GOD), and that men of understanding may take heed=
. </div><div>=C2=A0</div><div>Holy Quran</div></div>

--00000000000060a55b05f213aa5c--