Operating System - HP-UX
1832991 Members
2545 Online
110048 Solutions
New Discussion

Re: How to install DBI using gcc

 
Ko_2
Occasional Contributor

How to install DBI using gcc

Hi:
Has anyone installed DBI successfully using gcc? I have installed gcc on HP-UX 10.20. I ran "perl Makefile.PL" to generate Makefile. After that, I found the generated Makefile still use "cc" to compile the DBI modules. Is there anybody know how to make the generated Makefile to use "gcc" instead of "cc" for compile? Do I need to change any system comfiguarations to let perl recognize "gcc" rather than "cc"? Any help is appreciated. Thanks
problem in using swinstall
3 REPLIES 3
jjeyaprakash
Occasional Advisor

Re: How to install DBI using gcc

You just need to change the "Makefile" that you got with DBI.

Search for 'cc' in your Makefile and replace it with the gcc (full path).

Its better to check all Makefiles that you have got in that directory
Sys / Net Admin
Ko_2
Occasional Contributor

Re: How to install DBI using gcc

I have tried to change "cc" to "gcc" in the Makefile, but I got the error message "missing token-sequence in '#assert'" when I ran the make.
problem in using swinstall
Vikas_2
Advisor

Re: How to install DBI using gcc

You need to install "binutils" to make it work. Not sure but I think that U can get that from gnu.org. Remember to add "gcc" in your path too.

Thanks
Vikas