169
questions
0
votes
1
answer
143
views
error in running cpanm --installdeps on ubuntu 18.04
I'm trying to intall defects4j on ubuntu 18.04. but when I run the command:cpanm --installdeps .
I get errors on jason and DBD.
faeze@ubuntu:~/defects4j$ cpanm --installdeps .
--> Working on .
...
0
votes
1
answer
275
views
Read all records from the database using call functions in ims
I want to write a batch program with IMS that can get all the records in the database. The structure of my database is as follows: a root segment and a segment below it that has several occurrences ...
0
votes
0
answers
68
views
Does DBD::DB2 have an option to enable automatic decoding?
Does DBD::DB2 have a switch that performs automatic decoding from UTF-8, such as mysql_enable_utf8mb4 in DBD::mysql?
2
votes
1
answer
162
views
How to check if MySQL service is running with DBD::mysql
I am using the following DBD::mysql statement to connect to a MySQL database:
use DBI;
# Connect to the database.
my $dbh = DBI->connect("DBI:mysql:database=test;host=localhost",
...
1
vote
1
answer
71
views
DBD::mysql: ChopBlanks
Why are trailing blanks chopped off from the column value even though ChopBlanks is not enabled?
use DBI;
my $value = ' string ';
my $db = 'my_mysql_db';
my $dbh = DBI->connect( "dbi:...
1
vote
0
answers
467
views
How to fix the 'Can't load'-error when a perl script is executing 'use DBD::mysql;'
For years, I'm running a perl script on my Synology NAS. This script writes to a MariaDB database. I never had any errors. Until the migration to DSM7. This is what happened ...
I never had any ...
-1
votes
2
answers
177
views
DBI SQL_VARCHAR is not supporting, getting error DBD::ODBC::st bind_param failed: Data type is not supported. [typeId=-9] (SQL-HYC00)
I am using Gridgain as database. Perl script is written to read data from xml and insert/update the data to Gridgain database.
Passing XML data as hash to following line of code
use DBI;
use DBD::ODBC;...
0
votes
1
answer
246
views
Getting compilation error Can not load Mysql.pm in @INC
I am using RHEL 8 server where perl v5.26.0 has been installed. In my project there are lots of legacy perl modules who are using Mysql.pm as below.
require 5.004;
require Exporter;
use Mysql;
While ...
1
vote
1
answer
212
views
Perl DBD::SQLite installation fail on win7
I never installed DBI or DBI::SQLite, because they seem to be built into my Perl v5.32 installation. They have been working fine in a script I'm developing, which is now about 300 lines, but I ...
-1
votes
1
answer
157
views
How to build DBD::mysql with DBI in a custom @INC?
I'm building DBI and DBD::mysql in a continuous integration build server. The build of DBI is successful, as seen in the excerpt of the build log below. It clearly installs DBI/DBD.pm in the correct ...
1
vote
0
answers
1k
views
Can't install "DBD-mysql" on Mac
When running this command: perl -MCPAN -e 'install DBD::mysql' I get a really long output of different errors:
Reading '/Users/philipjoss/.cpan/Metadata'
Database was generated on Tue, 07 Sep 2021 ...
1
vote
1
answer
188
views
FreeBSD Can't locate loadable object for module DBD::mysql
I installed DBD::mysql, but Perl does not recognize it:
root@bsd:~ # freebsd-version
13.0-RELEASE
root@bsd:~ # perl -v
This is perl 5, version 34, subversion 0 (v5.34.0) built for amd64-freebsd
...
1
vote
2
answers
2k
views
DBD::mysql installation on Catalina/Big Sur fail with 'EXTERN.h' file not found?
I install DBD::mysql on Catalina preparing:
perl Makefile.PL --testpassword=s3kr1t --testhost=localhost --testport 3306 --testuser=test --libs="-L/usr/local/opt/openssl/lib -lssl -lcrypto -L/usr/...
0
votes
0
answers
69
views
Ruby: Gem dbd-pg(0.3.9) not working with Ruby 2.7
I'm trying to migrate very old script to ruby 2.7, gem seems to be installed correctly but its throwing out error i am assuming that error is because the script is expecting PG gem version to be 0.9.0 ...
1
vote
0
answers
218
views
Perl DBI execute() errors out when the database file isn't writable
I'm working on an applciation that uses the DBI(v1.643) and DBD::SQLite(v1.66) Perl modules to interact with a database file and fetch some information. It does this by running SELECT queries using ...
3
votes
1
answer
933
views
Variant Effect Predictor | DBD mysql failing to setup
I trying to get set up with Variant Effect Predictor (VEP) on the command line. I'm following the setup tutorial but I'm encountering some errors around dependencies. I'm also quite new to the command ...
1
vote
1
answer
313
views
Perl JDBC Module usage issue from CPAN
I am trying to install and use DBD::JDBC module from CPAN and getting into issues . Any PERL expert in forum can help me point out what is the issue ?
I am using all below operations using root.
This ...
2
votes
1
answer
970
views
Cannot install DBD::Oracle on macOS Big Sur => dependent dylib '@rpath/libclntsh.dylib.19.1' not found
I cannot build and install Oracle Instant Client 19.8 on macOS Big Sur 11.2.1. I get the following error:
Error: Can't load '/Users/x/.cpanm/work/1613898291.17798/DBD-Oracle-1.80/blib/arch/auto/DBD/...
1
vote
1
answer
103
views
DBD::SQLcipher prepare nor PRAGMA is working
I'm not being able to select from SQLcipher database with DBD::SQLcipher.
I tried various ways, and it still think the file i'm providing is not sqlcipher db (which i'm sure it is)
The first function ...
1
vote
1
answer
1k
views
Connect Ruby and MySQL
trying to connect ruby and mysql. When running a basic script to access the database getting the error:
Unable to load driver 'Mysql' (underlying error: uninitialized constant DBI::DBD::Mysql) (DBI::...
0
votes
1
answer
2k
views
How to install DBD::Sybase in linux server
I am not able to install DBD::Sybase module using Makefile.PL in linux. It's showing error
Please set the SYBASE in CONFIG, or set the $SYBASE environment variable
I am not able to identify which path ...
0
votes
1
answer
95
views
Rewrite directory path based on authentication data
I'm trying to provide my users a unique directory under one common URL (https://example.com/sync). Previously I managed this with a rewrite rule which just appended the remote users name to the root ...
2
votes
0
answers
316
views
DBD::mysql error in ActivePerl 5.28 on Windws10 64bits, Can't load mysql.dll
I'm having an issue with the DBD::mysql module. This question has been asked before on this forum but a solution was not posted so I thought I would repost it. Sorry if this is not appropriate for ...
0
votes
1
answer
145
views
Can't call method "execute" on an undefined value at D:\ImageMark\opt\siips\classa\patches\alter_db.pl line 421
if ($insert_ver) {
$sth = $dbh->prepare(qq|
insert into db_change (database_version,
script_name, run_date) values (?,?,?) |);
$sth->execute("$SQLFILES{$serverType[$...
1
vote
1
answer
378
views
Can't locate XML/Writer.pm in @INC . Cant locate DBD/CSV.pm in @INC
I tried using CPAN module XML::Writer, but I am getting following error:
Can't locate XML/Writer.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /...
2
votes
2
answers
196
views
IN in WHERE-clause is not being parsed correctly using SQL::Statement
I'm using a slightly modified version of the example provided here: https://metacpan.org/pod/distribution/SQL-Statement/lib/SQL/Statement/Structure.pod
use SQL::Statement;
use Data::Dumper;
my $sql ...
2
votes
1
answer
183
views
Perl running as user "apache" cannot load DBD::mysql while other users can
The site I administer has some CGI scripts that run scripts of the form:
#!/usr/bin/env bash
perl my-script.pl
my-script.pl uses DBD::mysql.
use DBD::mysql;
My scripts use many CPAN modules and I ...
0
votes
2
answers
383
views
Perl DBI: uneven-number of bind variables with OR Statement (called with x bind variables when y are needed)
Definition of task:
Fetch data from two different columns using OR.
Problem:
While its working with the plain (MySQL) query, Perl DBI throws an exception due to the uneven-number of bind variables.
...
1
vote
1
answer
2k
views
Perl CPAN Module Install fails: DBD::Pg (PostgreSQL Driver) on Windows7 64 bit Strawberry Perl 5.26.1, PostgreSQL 12
First logged on GitHub:
https://github.com/metacpan/metacpan-web/issues/2266
Then CPAN:
https://rt.cpan.org/Ticket/Display.html?id=131708
1st issue:
cpan install DBD::Pg fails looking for LIBPQ.dll
...
0
votes
3
answers
6k
views
Executing DB2 commands '' db2start: command not found ''
I have one virtual server running on centos7. I configure it for the Nagios monitoring tool. I created the config file etc. I have 9 DB instances. When I migrated the DB config file with Nagios(adding ...
0
votes
1
answer
832
views
Error "install_driver(Oracle) failed" when running Perl script which is pointing to Oracle database
I am running a Perl script, which is pointing to an Oracle database, which requires an Oracle driver to execute the Perl script.
Below is the error message:
“install_driver(Oracle) failed: Can't ...
1
vote
0
answers
539
views
Error using perl module DBD::mysql in ActivePerl 5.28 on Windws10 64bits
I installed the new ActiveState Perl custom build with Perl 5.28 and I added the module (DBD-mysql v4.50). The DBI module is set by default to the ActivePerl 5.28 compilation.
use strict;
use ...
10
votes
2
answers
1k
views
Is there any implementation of database by perl [closed]
Is there any perl modules implementing function of database and easy to use. I do not need modules used to connect to some database products. I need simple database writing by perl.
Thanks.
3
votes
1
answer
3k
views
Trouble installing DBD::mysql under macOS Catalina 10.15.1
Can't install DBD::mysql under macOS Catalina 10.15.1. Mysql 8.0.18 and openssl 1.0.2t are installed through brew.
Here is the module installation log:
cpan[1]> install DBD::mysql
..........
I ...
0
votes
1
answer
125
views
PERL using WITH clause in Database prepare
I'm trying to prepare a complex query using WITH in perl against an Oracle DB and keep getting an error when preparing.
DBD::Proxy::st execute failed: Server returned error: Failed to execute ...
0
votes
1
answer
594
views
Perl to mysql connectivity on Windows 10
I have a process that works in the production environment, that I need to get working on my local Windows 10 environment. It is a Perl script that calls mySql stored procedures.
I have installed ...
1
vote
1
answer
713
views
SQL IM002 Errors while connecting to SQL Server from perl on heroku
I have a perl application hosted on heroku which needs to connect with some sql server. I am unable to establish connection. It fails with following error:
DBI connect('Driver={ODBC Driver 11 For ...
3
votes
1
answer
1k
views
execute failed: Incorrect string value: '\xD6sterl...' with mariadb and perl DBD
I'm a novice perl programmer trying to use DBI to write a buffer of text that contains an email with umlauts and other non-ASCII characters to a joomla database and having a problem.
DBD::mysql::st ...
0
votes
4
answers
2k
views
can't find version.pm while trying to install DBD-Pg-2.19.3 on Centos-7
On Centos 7.
The oracle DBD installed just fine I am having a problem with the Postgresql version.
This is the script I am running:
set -x -e
sudo yum -y install perl-devel
sudo yum -y install ...
2
votes
1
answer
3k
views
Trouble installing DBD::mysql under macOS Mojave
Can't install DBD::mysql under macOS Mojave with perl v5.18.2
MySQL Community Server 8.0.13 is installed from DMG from the official site.
Here is the installation log via cpan:
Checking if libs are ...
1
vote
0
answers
49
views
How to port pre-built Perl DBD::Oracle to different location of Oracle libraries?
DBD/Oracle/Oracle.so hard-codes the location of Oracle's libclntsh.so (and other libraries) to their location at the time of building/installing DBD::Oracle.
I do not want to build and install DBD::...
1
vote
0
answers
377
views
Pure Perl DBI/DBD to query Oracle database
Is there the possibility of a Pure Perl DBI connection of some kind to an Oracle database? I'm trying to allow for running queries from many different servers of different architectures and avoid ...
0
votes
1
answer
994
views
DBD::Oracle: make error : undeclared (first use in this function)
I have been trying to install DBD::Oracle in Linux 7.4(x86_64 x86_64 x86_64 GNU/Linux) for past 2 days. This has become a roadblock for one of the critical projects. I have tried all possible ways I ...
1
vote
0
answers
109
views
DBD::Oracle unable to connect due to OCIEnvNlsCreate error on MacOS 10.12.6
I'm trying to connect to an Oracle server in a Perl script. The script works on other machines that are already configured. I'm trying to set up my machine to allow me to do local development.
I ...
0
votes
1
answer
234
views
SQL - COUNT results from SELECT
I would like to count all the repetitions of the maximum values from the profit column for all asset (they repeat, and I want to choose the best result from each unique repetition), and finally group ...
2
votes
2
answers
279
views
Setting up DBD::SQLite to support a custom version of sqlite3
I get a too many SQL variables error using a package-default version of sqlite3, when I pass in more than 998 variables into a SQL query.
The sqlite3 binary packaged with yum for my OS and version ...
0
votes
1
answer
958
views
DBD::Pg compilation error (Windows 10 / Strawberry Perl)
I'm trying to install the DBD::Pg (3.7.4) module on my windows 10/Strawberry Perl, but the compilation failed
For that I downloaded the module on metacpan and executed following command in the ...
0
votes
1
answer
678
views
getting error DBI_DRIVER env var not set while running dbicdump
I was testing to dump the DBIx::Class for my sample sqlite database on the windows 7 machine.
I have installed DBIx::Class::Schema::Loader , along with DBI and DBD::SQLite module , but when I am using ...
0
votes
1
answer
2k
views
Unable to Install DBD::Oracle for Perl on Windows
When trying to install DBD::Oracle library i received the following error message "Can't load /usr/lib/perl5/site_perl/5.24/x86_64-cygwin-threads/auto/DBD/Oracle/Oracle.dll for module DBD::Oracle: No ...
1
vote
1
answer
3k
views
How to fetch multiple columns from SQL query and store them in 2d array in perl
Suppose I have a query like:
my $sql = "SELECT dev_name,
OID_name,
Obj_Val
FROM dev_logs";
where the table has values like
+----+------------+--------...