Posted on 2006-08-14 02:58:14-07 by ahclem
SQLite.xsi missing on Solaris
Hi,

I'm trying to install DBD::SQLite 1.12 on Solaris 5.9 via CPAN. I have re-installed DBI already, having found that tip on the web. Here's what I get:

  CPAN.pm: Going to build M/MS/MSERGEANT/DBD-SQLite-1.12.tar.gz

cp lib/DBD/SQLite.pm blib/lib/DBD/SQLite.pm
/home/scorwin/perl/bin/perl /home/scorwin/perl/lib/5.8.8/ExtUtils/xsubpp -typemap /home/scorwin/perl/lib/5.8.8/ExtUtils/typemap SQLite.xs > SQLite.xsc && mv SQLite.xsc SQLite.c
Cannot open 'SQLite.xsi': No such file or directory in SQLite.xs, line 72
make: *** [SQLite.c] Error 1
/usr/local/gnu/bin/make -- NOT OK

Any ideas?

Thanks,

Steve
Direct Responses: 2844 | Write a response
Posted on 2006-08-28 11:23:22-07 by eastmountainwolf in response to 2781
Re: SQLite.xsi missing on Solaris
I also run into this touble, pls tell me if you have resolved the proplem some people said it's the problem with gcc. some people tried to modified the Makefile. I was confused...
Direct Responses: 10021 | Write a response
Posted on 2009-02-19 18:08:47-08 by simul in response to 2844
Re: SQLite.xsi missing on Solaris
On Windows, I had to do this:
perl -p -e "s/~DRIVER~/SQLite/g" c:\Perl\lib\auto\DBI\Driver.xst > SQLite.xsi

on Linux, the command is this:
/usr/bin/perl -p -e "s/~DRIVER~/SQLite/g" \ /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/DBI/Driver.xst > SQLite.xsi

But, I haven't figured out exactly what or who needs a patch to get this to work on all platforms (which i think it must)

Pretty sure the fault lies in the DBI template driver code... not in SQLite. That being said, SQLite could patch up the makefile or spit out a warning if the letters ".xsi" aren't present (which they are not on many platforms)

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.