APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS











(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Home > News Posts > Perl DBI ––>Re: Perl DBI
Printer Friendly Version




News Group Posts

Perl DBI SCO Unix 5


SCO Unix had tywo complier options. The first as their "native" compiler, which requited a purchased license.

At some point they put gcc into Skunkware and you could avoid the purchasing of a license by using that. You did still need the SCO specific header files, but they let you have those freely.

Some folks had both and of course make files might be aimed at one or the other. This is an example.




From: Lukasz Wiechec <magic@bet.po.opole.pl>
Subject: Re: Perl DBI
Newsgroups: comp.unix.sco.misc
References: <998684974.876681018@news.junction.net> 
Date: Mon, 27 Aug 2001 16:09:39 +0200
Message-ID: <3bkdm9.jfu.ln@blacky.wbk.com> 
X-Original-NNTP-Posting-Host: pa55.opole.cvx.ppp.tpnet.pl

Skot <skotaylor@yahoo.com> wrote:
> Has anyone had any luck installing the Perl DBI module on OSR5.0.5, I'm using
> Perl5.005 and gcc 2.95.2.  perl Makefile.PL says everything is fine, but make
> gives me these errors:

> /usr/bin/perl -I/usr/local/lib/perl5/5.00503/i386-sco -I/usr/local/lib/perl5/5.00503 
> /usr/local/lib/perl5/5.00503/ExtUtils/xsubpp  -typemap /usr/local/lib/perl5/5.00503/ExtUtils/typemap 
> Perl.xs >xstmp.c && mv xstmp.c Perl.c      
> cc -c  -U M_XENIX -D PERL_SCO -D PERL_SCO5 -w0 -belf -I/usr/local/include -O0  
> -DVERSION=\"1.19\" -DXS_VERSION=\"1.19\" -Kpic -I/usr/local/lib/perl5/5.00503/i
> 386-sco/CORE -DDBI_NO_THREADS Perl.c                                          
> cc: unrecognized option `-w0'                                                 
> cc: unrecognized option `-Kpic'                                               
> cpp: -lang-c: linker input file unused since linking not done                 
> cc: installation problem, cannot exec `cc1': No such file or directory        
> cc: file path prefix `/usr/local/lib/gcc-lib/elf/2.95.2/' never used          





> make: *** [Perl.o] Error 1 

> Anyone know what I'm missing?

I've managed to compile and install successfully Perl DBI on OS 5.0.4 using
gcc 2.7.2.3 (old Skunkware). 

Are you sure you are compiling using gcc ? For me it seems you're using 
SCO native 'cc', which lacks such options as -w0 or -Kpic. Look into
your 'Makefile' and change 'CC' settings to CC=gcc. 
I don't remember exactly what I did (I compiled it about a year ago), but
all you have to do is to make sure you're using proper compiler (i.e. gcc)
and use proper options for it.

Let us know how it went.

-- 
Milego dnia,



        Lukasz Wiechec
 

If this page was useful to you, please click to help others find it:  

Your +1's can help friends, contacts, and others on the web find the best stuff when they search.

Comments?




More Articles by Tony Lawrence - Find me on Google+



Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar


cartoon
Versatile Site Map Generator $59.00
A1 Sitemap Generator

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.


My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!


book graphic unix and linux troubleshooting guide




 I sell and support
 Kerio Mail server
pavatar.jpg

This post tagged:

       - Perl
       - Programming
       - SCO_OSR5




Unix/Linux Consultants

Skills Tests

Guest Post Here