Create your blog and photo album with postbit
Create your blog and photo album

Create new post

Content:

Upload a picture:
Tags (keywords separated by comma)

Save Cancel
perl:   Followers: 2 ; Following: 2

Explore perl's photo albums:
Perl images (1)
Photos from posts (2)

How to install DBI using cygwin


I had to install DBI to use DBD::SQLite. To install DBI using cygwin type:

cpan
install DBI

I got an error of gcc4 and g++4 when trying to install DBI because there are no gcc-4 and g++4 anymore. They are replaced by gcc.exe and g++.exe. So you need to make a sym link to the old filenames if you get the error:
make: gcc-4: Command not found
make: g++-4: Command not found

Type this to correct the gcc-4 and g++-4 errors:

ln -s /usr/bin/gcc.exe /usr/bin/gcc-4.exe
ln -s /usr/bin/g++.exe /usr/bin/g++-4.exe

After this, the DBI module could be installed and DBD::SQLite was also installed using CPAN.

---

The full error that I got because of missing gcc-4:

make: gcc-4: Command not found
make: g++-4: Command not found

Makefile:766: recipe for target 'blib/arch/auto/DBI/DBI.dll' failed
make: *** [blib/arch/auto/DBI/DBI.dll] Error 127
  TIMB/DBI-1.631.tar.gz
  /usr/bin/make -- NOT OK
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible
Failed during this command:
 TIMB/DBI-1.631.tar.gz                        : make NO
 

Post by perl (2014-10-12 23:43)

Post your comment:

Name: Email: Site:




| Explore users | New posts | Create your blog | Create your photo album |
| About Postbit | Our blog | Terms of use | Contact Postbit |


Copyright © 2017 - postbit.com