in reply to Re: Testing Script ODBC
in thread Testing Script ODBC

Inick

Thank for your prompt response this is a homework the professor order me to use Acces with ODBC, but for me it like impossible install ODBC on ubuntu I got many issues with that, I Just want any you guys test this script and if work let me know otherwise tell which is the error present.

Thanks Error I got
install_driver(ODBC) failed: Can't locate DBD/ODBC.pm in @INC (you ma +y need to install the DBD::ODBC module) (@INC contains: /etc/perl /us +r/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 / +usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/li +b/site_perl .) at (eval 4) line 3. Perhaps the DBD::ODBC perl module hasn't been fully installed, or perhaps the capitalisation of 'ODBC' isn't right. Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge, mysql. at createdb.pl line 18.

Replies are listed 'Best First'.
Re^3: Testing Script ODBC
by poj (Abbot) on Nov 06, 2015 at 13:29 UTC

    Which version of Ubuntu ?

    poj
      Hello Poj

      Can you check this script un you linu

      My ubuntu is 14.04.2 LTS

        I have just installed DBI/DBD on 15.1 using

        sudo apt-get install libdbi-perl libdbd-odbc-perl

        I would also suggest you install

        sudo apt-get install mdbtools and then try mdb-tables new.mdb
        poj

      Thank you Poj it work now but I'm getting this errror that do you think I have to change in my code ?

       DBI connect('driver=Microsoft Access Driver (*.mdb);dbq=new.mdb','root',...) failed: [unixODBC][Driver Manager]Data source name not found, and no default driver specified (SQL-IM002) at createdb.pl line 18.
        do you think I have to change in my code ?

        The code is fine for a windows machine !.
        If I explain how to configure unixODBC to work it will be read-only access. You can't create new tables.
        poj

      This version 14.04.2 LTS if you can run it and tell me if works fine I will appreciateUbuntu version