Operating System - HP-UX
1836755 Members
2642 Online
110109 Solutions
New Discussion

Re: How to resolve this kind of error

 
ambika_1
Frequent Advisor

How to resolve this kind of error

I am using HPUX 11.11 OS.

When i run gmake its giving following error.

usr/ccs/bin/ld: Can't find library for -lbz2
collect2: ld returned 1 exit status

How to resolve this error.
8 REPLIES 8
HGN
Honored Contributor

Re: How to resolve this kind of error

Hi

Gmake needs to be installed on the server without which it willnot work.

You need check to see if it works on hpux, purchase & install.

Rgds

HGN
Arunvijai_4
Honored Contributor

Re: How to resolve this kind of error

Hello Ambika,

gmake says it can't find libbz2.sl in SHLIB_PATH. Did you install bzip2 depot on your 11.11 machine ? You can download it from http://hpux.connect.org.uk/hppd/hpux/Misc/bzip2-1.0.3/

after installing, do a # gmake clean && gmake.
It should work. Also, you may need to export
export SHLIB_PATH=/usr/local/lib:$SHLIB_PATH

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Geoff Wild
Honored Contributor

Re: How to resolve this kind of error

I think you need bzip:

http://hpux.ee.ualberta.ca/hppd/hpux/Misc/bzip2-1.0.3/

Where did you get gcc from?

Best is from here:

http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html

That way you get the Binutils as well.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Sandman!
Honored Contributor

Re: How to resolve this kind of error

Hello Ambika,

Could you post the command that you are using to build this executable.

cheers!
ambika_1
Frequent Advisor

Re: How to resolve this kind of error

Thanks all.

That error is resolved.

Regards,
Ambika
Arunvijai_4
Honored Contributor

Re: How to resolve this kind of error

To keep up the spirits,

http://forums1.itrc.hp.com/service/forums/helptips.do?#28


-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
ambika_1
Frequent Advisor

Re: How to resolve this kind of error

Thank you.
ambika_1
Frequent Advisor

Re: How to resolve this kind of error

Problem is resolved.