Viewed 6k times. EXE - aborting Questions, feedback, requests -- just comment, thanks!! What vendor are you using for Perl on Windows? What have you tried in the installation section search. Robert P: Thanks, that worked -- posted it as an answer, feel free to repost my notes as your answer, I'll delete mine, and select you as the answer. Again, thanks!! Add a comment.
Active Oldest Votes. Command that did the job was: ppm install DBD::mysql. To build DBD::mysql against this client, you will first need to build the client.
Generally, this is done with the following:. For installing DBD::mysql you need to have the libssl header files and the mysql client libs. If you are a user of Cygwin you already know, it contains a nicely running perl 5. But to install DBD::mysql you have to take a little special action. You'll only need that library and the header files, you don't need any other client parts.
Continue to use the Windows binaries. And don't attempt currently to build the MySQL Server part, it is unnecessary, as MySQL AB does an excellent job to deliver optimized binaries for the mainstream operating systems, and it is told, that the server compiled under Cygwin is unstable.
Install a MySQL server for testing against. This prepares the Makefile with the installed Cygwin features. It takes some time, but should finish without error. The --without-server parameter tells configure to only build the clients.
Essentially you are now done with this part. If you want, you may try your compiled binaries shortly; for that, do:. The host -h parameter If you have your MySQL server running on some other box, then please substitute ' Some Linux distributions don't come with a gzip library by default. Running "make" terminates with an error message like. If this is the case for you, install an RPM archive like libz-devel, libgz-devel, zlib-devel or gzlib-devel or something similar.
If Perl was compiled with gcc or egcs, but MySQL was compiled with another compiler or on another system, an error message like this is very likely when running "Make test":. Finally, if everything else fails, you are not alone. If you don't find an appropriate posting and reply in the mailing list, please post a question.
Typically a reply will be seen within one or two days. For more information on module installation, please visit the detailed CPAN module installation guide. Chat with us! You may also create client files by compiling from the MySQL source distribution and using configure --without-server If you are using Windows and need to compile from sources which is only the case if you are not using ActivePerl or Strawberry Perl , then you must ensure that the header and library files are installed.
C compiler A C compiler is only required if you install from source. All you need to do is typing in a cmd. CPAN installation Installation of DBD::mysql can be incredibly easy: cpan DBD::mysql Please note that this will only work if the prerequisites are fulfilled, which means you have a C-compiler installed, and you have the development headers and mysql client libraries available on your system.
Manual installation For a manual installation you need to fetch the DBD::mysql source distribution. Enter this subdirectory and type perl Makefile. PL make make test On Windows you may need to replace "make" with "dmake" or "nmake". If the tests seem to look fine, you may continue with make install If the compilation make or tests fail, you might need to configure some settings. For Cygwin there is a special section below. Configuration The install script "Makefile.
For example, the test database: perl Makefile. See Section 2. If you have previously installed MySQL using your operating system native package management system, such as Yum or APT, you may experience problems installing using a native binary. Make sure your previous MySQL installation has been removed entirely using your package management system , and that any additional files, such as old versions of your data files, have also been removed.
MySQL has a dependency on the libaio library. Data directory initialization and subsequent server startup steps fail if this library is not installed locally. If necessary, install it using the appropriate package manager. For example, on Yum-based systems:.
For MySQL 5. A workaround is to create a symlink, such as ln -s libncurses. This creates the directories shown in the following table. Learn more. Asked 10 years, 11 months ago. Active 3 years ago. Viewed 7k times. PL Ran the make command from the command line The Makefile. Multiple copies of Driver. BEGIN failed--compilation aborted at eval 7 line 2.
Many thanks in advance. Add a comment. Active Oldest Votes. RonN RonN 2 2 bronze badges. Nathan Nathan 3, 1 1 gold badge 24 24 silver badges 31 31 bronze badges. Taryn k 54 54 gold badges silver badges bronze badges. Installing DBD::mysql failed.
0コメント