Guys,
sorry for cross posting this to Devel too, but I have had to do some code changes....
In order to get the OpenCA server started on this RedHat Enterprise 2.1 server with Perl 5.6.1 I have had to edit "OpenCA/DBI.pm". I have replaced the line:
use POSIX qw(setlocale LC_MESSAGES);
with the lines:
use Locale::Messages qw(LC_MESSAGES) use POSIX ('setlocale'); setlocale (LC_MESSAGES, '');
I have got this code from "http://www.cpan.org/modules/by-module/Crypt/GUIDO/libintl-perl-1.00.readme" as the locale catagory LC_MESSAGES is not exported bu the POSIX module on older Perl versions.
Now, this seems to have fixed my problem, as the openca server now starts with openca_start with no error messages.
The only trouble is I now get the error:
"DBD::mysql::st execute failed: You have an error in your SQL syntax near 'NAMES'utf-8'' at line 1 at ../OpenCA/DBI.pm line 2587."
Am I fighting a loosing battle here because of the Perl version I am using ? Or is this an error people have seen before ?
Chris...
Chris Covell wrote:
OK, so I have piinned in down a bit.
When you use a DBI the fnction initDBI is called, this in turn calls OpenCA/DBI.pm which has the line:
use POSIX qw(setlocale LC_MESSAGES);
which in turn calls POSIX.pm and it is the import subroutine in side here that fails.
So is some sort of environment variablle not getting set somewhere ?
Chris...
Chris Covell wrote:
Alfonso,
Alfonso Sparano wrote:
Do you have installed DBD::mysql perl module?
Try: perl -MCPAN -e'install DBD::mysql'
yes, I am in a Red hat environment so I installed the module via rpm.
# rpm -q perl-DBD-MySQL # perl-DBD-MySQL-1.2216-4
I also have the perl-DBI module installed.
It is strange, as I am sure the POSIX.pm is to do with text translation, so i don't understand why it gives the error with the mysql...
Chris...
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Openca-Users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openca-users
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Openca-Users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openca-users
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
OpenCA-Devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openca-devel