![]() You can either incorporate them into a batch file before every program run or set them permanently in Windows via the Manage -> Environment Variables screen. Make sure you permanently set the SET parameters above permanently in your environment. ![]() Once you are done and run a test script (like this one here) to test connectivity you should be good to go. REM Using the test script below, make sure you can invoke DBI and talk to an Oracle database REM Run CPAN and execute some cpan commands: REM SET PATH=C:\perl\perl\site\bin C:\perl\perl\bin C:\perl\c\bin C:\perl\perl\site\bin C:\perl\perl\bin c:\perl\instantclient_11_2 REM A more isolated version of a PATH I used for testing when I had multiple clients installed: SET PATH=%PATH% c:\perl\instantclient_11_2 SET TNS_ADMIN=c:\perl\instantclient_11_2\network\admin SET LD_LIBRARY_PATH=c:\perl\instantclient_11_2 SET ORACLE_HOME=c:\perl\instantclient_11_2 REM At this point c:\perl\perl\bin should be available, this should result in a version banner: I downloaded the Win32 InstantClient, the SQLPlus, and the SDK packages from the Instant Client Download Pageģ) Create c:\perl\instantclient_11_2\network\admin, copy tnsnames.ora, ldap.ora, sqlnet.ora thereĤ) Install Oracle::DBD, open a cmd.exe window and:Īfter this step you must exist your cmd.exe window and start it again for the Perl related environment variables to take effect. To do this I had to run a bunch of the make steps manually but its all good, here is what I did to get it to work:ġ) Download and extract Strawberry Perl ZIP Edition to c:\perlĢ) Download and extract oracle instant client files to c:\perl\instantclient_11_2. For some reason backticks wasn't cooperating on my machine, but the Makefile has a command line option to force the version. The main issue was a part in the that tries to run SQLPLUS to get the version. See the comments for 258 for a workaround. ![]() I had to go through a little pain to get DBD::Oracle installed, but considering Strawberry includes all the gcc and make tools required this is much easier than starting from scratch. Note: installing Padre in a fresh install of Strawberry Perl can lead to weird behaviour, like preferences not being saved on exit (due to Padre crashing on exit). Instructions for installing DBD::Oracle are here You can load up on this tasty perl goodness at the website. They also offer a set of files that you can use to build your own custom Strawberry Perl install packages - probably good if you are developing a packaged application. MSI installer if you have admin privileges or a self contained ZIP edition that does not require admin privileges - just drop it in a directory and go. They offer 32/64 bit distribution packages in multiple forms including a tidy. ), all the bundled database clients and all you expect from Strawberry Perl. ![]() It includes perl binaries, compiler (gcc) related tools, all the external libraries (crypto, graphics, xml. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |