Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Installing modules

by dasgar (Priest)
on Jun 18, 2013 at 01:29 UTC ( [id://1039496]=note: print w/replies, xml ) Need Help??


in reply to Installing modules

By default, ActiveState does not include a compiler and compiler tools with their ActivePerl installation. As such, you can only install pure Perl modules from CPAN and not those modules that need to be compiled (such as XS modules).

I'm going to assume that you're using a 32-bit version of ActiveState's ActivePerl. Here's what I would recommend trying. Use the PPM utility to install MinGW and dmake from ActiveState's default repository for your Perl installation. Once you have those installed, you can then install modules from CPAN that need to be compiled. In your case, you should be able to open a command prompt and type cpan install DBD::JDBC to install the DBD::JDBC module.

If you're using a 64-bit version of ActivePerl, that's a bit more complicated and I'm not sure I can really guide you through that process. If you are on a 64-bit Windows XP and really need 64-bit Perl, my personal recommendation would be to move to Strawberry Perl, which comes with a compiler and compiler tools.

UPDATE: Corrected the module name. (s/DBD::ODBC/DBD::JDBC/g)

Replies are listed 'Best First'.
Re^2: Installing modules
by slugger415 (Monk) on Jun 20, 2013 at 20:15 UTC

    Hi, I have installed Strawberry Perl on Win7 and still have not been able to install DBD::JDBC.

    Has anyone successfully installed this on Windows XP or Win7? I even tried installing 'make' for Windows and got some other weird errors when trying to install the module manually.

    Checking if your kit is complete... Looks good Using DBI 1.622 (for perl 5.016002 on MSWin32-x86-multi-thread) instal +led in C:/ strawberry/perl/vendor/lib/auto/DBI/ Writing Makefile for DBD::JDBC Writing MYMETA.yml and MYMETA.json cp JDBC.pod blib\lib\DBD\JDBC.pod cp JDBC.pm blib\lib\DBD\JDBC.pm cp lib/Bundle/DBD/JDBC.pm blib\lib\Bundle\DBD\JDBC.pm VIZDOM/DBD-JDBC-0.71.tar.gz C:\strawberry\c\bin\dmake.exe -- OK Running make test set CLASSPATH=dbd_jdbc.jar;t/hsqldb/hsqldb-1.8.0.2.jar;t/hsqldb/log4j- +1.2.13.jar ; C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib\lib', 'blib\arch')" t/*.t t/01_env.t ...... ok t/02_connect.t .. 1/5 Exception in thread "main" java.lang.NoClassDefF +oundError: com.vizdom.dbd.jdbc.Server Caused by: java.lang.ClassNotFoundException: com.vizdom.dbd.jdbc.Serve +r at java.net.URLClassLoader.findClass(URLClassLoader.java:434) at java.lang.ClassLoader.loadClass(ClassLoader.java:660) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:35 +8) at java.lang.ClassLoader.loadClass(ClassLoader.java:626) Could not find the main class: com.vizdom.dbd.jdbc.Server. Program wi +ll exit. t/02_connect.t .. 3/5 # Failed test 'connected' # at t/02_connect.t line 40. # Connection error: Failed to open socket to server: IO::Socket::INET: + connect: No connection could be made because the target machine actively refuse +d it. # Looks like you failed 1 test of 5. t/02_connect.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/5 subtests (less 2 skipped subtests: 2 okay) t/03_hsqldb.t ... 1/22 Exception in thread "main" java.lang.NoClassDef +FoundError : com.vizdom.dbd.jdbc.Server Caused by: java.lang.ClassNotFoundException: com.vizdom.dbd.jdbc.Serve +r at java.net.URLClassLoader.findClass(URLClassLoader.java:434) at java.lang.ClassLoader.loadClass(ClassLoader.java:660) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:35 +8) at java.lang.ClassLoader.loadClass(ClassLoader.java:626) Could not find the main class: com.vizdom.dbd.jdbc.Server. Program wi +ll exit. t/03_hsqldb.t ... 2/22 # Failed test 'connected' # at t/03_hsqldb.t line 34. # Connection error: Failed to open socket to server: IO::Socket::INET: + connect: No connection could be made because the target machine actively refuse +d it. # Looks like you failed 1 test of 22. # Looks like your test exited with 1 just after 22. t/03_hsqldb.t ... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/22 subtests (less 20 skipped subtests: 1 okay) t/basis.t ....... skipped: BASIS URL not defined t/oracle.t ...... skipped: Oracle URL not defined Test Summary Report ------------------- t/02_connect.t (Wstat: 256 Tests: 5 Failed: 1) Failed test: 3 Non-zero exit status: 1 t/03_hsqldb.t (Wstat: 256 Tests: 22 Failed: 1) Failed test: 2 Non-zero exit status: 1 Files=5, Tests=32, 9 wallclock secs ( 0.06 usr + 0.01 sys = 0.08 CP +U) Result: FAIL Failed 2/5 test programs. 2/32 subtests failed. dmake.exe: Error code 255, while making 'test_dynamic' VIZDOM/DBD-JDBC-0.71.tar.gz C:\strawberry\c\bin\dmake.exe test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports VIZDOM/DBD-JDBC-0.71.tar.gz Running make install make test had returned bad status, won't install without force Stopping: 'install' failed for 'DBD::JDBC'. Failed during this command: VIZDOM/DBD-JDBC-0.71.tar.gz : make_test NO

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1039496]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 16:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found