Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I am attempting to install DBD:ODBC on perl 5.6.1 DBI 1.37 and solaris 2.7 and using openlink odbc drivers with iodbc included with it.

When I run perl Makefile.PL it runs fine. ( I did set the required env variables), however when I try make test it tells me unexpected end of line seen on line 298. I downloaded GNU make and attempted to do /usr/local/bin/make test and it tells me

Makefile:297 *** missing seperator. *** stop.

What am I doing wrong?

Thanks
Brent

Replies are listed 'Best First'.
Re: DBD::ODBC make error
by Sandy (Curate) on Dec 04, 2003 at 00:10 UTC

    It's me again. I don't have the makefile that dbi-org sent me, but here is what you need to do.

    Edit Makefile.PL

    Edit line 427 (following is a code snippet with line numbers). Replace all blanks preceding the @$(NOOP) with a single tab character.

    422 # make Changes file available as installed pod docs "perldoc DBI: +:Changes" 423 inst_libdbdodbc = ' . File::Spec->catdir($self->{INST_LIB}, 'DBD/ +ODBC') . ' 424 changes_pm = ' . File::Spec->catfile($self->{INST_LIB}, 'DBD/ODBC +', 'Changes.pm') . ' 425 426 config :: $(changes_pm) 427 @$(NOOP) 428 429 $(changes_pm): Changes 430 $(NOECHO) $(MKPATH) $(inst_libdbdodbc) 431 $(NOECHO) $(RM_F) $(changes_pm) 432 $(CP) Changes $(changes_pm) ';

    Good Luck.

    Sandy.

      That did it Sandy
      Thanks
      Brent
Re: DBD::ODBC make error
by PodMaster (Abbot) on Dec 03, 2003 at 22:53 UTC
    You're probably using the wrong make program. You have to use the same make program that your perl was built with. Try `perl -V:Make' and see what you get.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

      I had the same problem less than a week ago.

      It is a bug in the Makefile.PL. It's easy to fix. Go to the appropriate line in the Makefile.PL and remove the spaces at the beginning of the line, and replace with a tab.

      I'm new to this site, and I don't yet know how to send an attachment (is it possible), but if it is, I will post it here pronto.

      Good luck! This is the reply I got from the dbi-users.org group.

      It's a bug in Makefile.PL. Put tabs in front of the $(NOOP) and rerun Makefile.pl Jeff > -----Original Message----- --- deleted ---- > Subject: Resulting Makefile won't 'make' during install of DBD-ODBC > > > > Hi, > > I've been trying to install DBD-ODBC on a Solaris 2.8 machine > and have hit a snag I can't solve myself. > > After running perl Makefile.pl, I tried running make. It > refused to run (see log below). I have the 'make' utility > that came with Solaris and the GNU 'make' utility. Both > refused to run.. > > Summary: > GNU make error message -> > Makefile:303: *** missing separator. Stop. > > css make error message -> > make: Fatal error in reader: Makefile, line 304: Unexpected > end of line seen > > The following is the additional info that you requested, as > well as the following attachments > (log of the attempted install and the makefile) >