When ever I try to cpanp install Text::Markdown::Discount on Strawberry Perl I get
cp lib/Text/Markdown/Discount.pm blib\lib\Text\Markdown\Discount.pm
( cd discount-2.1.2; CC='cc -fPIC' sh configure.sh; make )
The system cannot find the path specified.
I see a lot of others are having this same problem. Can T:M:D be installed on Strawberry Perl?
You also can not install T:M:D with ppm:
PPM> install Text::Markdown::Discount
Install package 'Text-Markdown-Discount?' (y/N): y
Installing package 'Text-Markdown-Discount'...
Error installing package 'Text-Markdown-Discount': Could not locate a PPD file f
or package Text-Markdown-Discount
I installed Text::Markdown::Discount with these steps:
git clone https://github.com/sekimura/text-markdown-discount.git
cd text-markdown-discount/
perl Makefile.PL
make
make test
sudo make install
Related
I used Ubuntu 18.04 LTS for Windows from Microsoft store and tried to install BioPerl module Bio::SeqIO with cpanm Bio::SeqIO. Perl version is v5.26.1. It seems that module installation failed:
! Installing the dependencies failed: Module 'XML::Twig' is not installed, Module 'XML::LibXNL::Reader' is not installed, Module 'XML::LibXML' is not installed, Module 'XML::Parser::PerlSAX' is not installed, Module 'XML::DOM::XPath' is not installed, Module 'XML::DOM' is not installed
! Bailing out the installation for BioPerl-1.7.7
58 distributions installed
If i run a script with line use Bio::SeqIO; I get an error:
Can't locate Bio/SeqIO.pm in #INC (you may need to install the
Bio::SeqIO module) (#INC contains: ...
I am not sure how to proceed. I could try to install dependencies that failed with cpanm but I do not know if it is a proper way.
I tried this on my Windows 10 laptop:
Installed WSL Ubuntu 18.10 as described here, then
Using the system perl, i.e /usr/bin/perl (maybe it would have been better to use perlbrew and installed a custom perl and such avoid using sudo) from the Linux terminal window:
sudo apt-get update
sudo apt-get -y install make gcc libexpat1-dev
sudo cpan local::lib
sudo cpan App::cpanminus
sudo cpanm -n Time::Zone # <-- failed tests
sudo cpanm -n XML::DOM::XPath # <-- failed tests
sudo cpanm Bio::SeqIO
This worked for me.
Perhaps sudo apt-get install bioperl bioperl-run would install all modules which you might need in feature.
Bioperl
I tried all the following ways to install PP via PPM on Windows. But unable to install it.
ppm install pp
Error: Installing package 'pp'...
Error: installing package 'pp': Could not locate a PPD file for package pp
Kindly someone help to install, I have to create exe file from .pl file.
ActiveState doesn't come with a sensible build environment, you have to install it:
ppm install MinGW
Once completed install pp:
cpanm pp
Or to save your time/sanity use Strawberry Perl over ActiveState, since it comes with a sensible build environment out of the box.
How can I install XML::LibXML Perl module on ActiveState Perl Version 5.6.1 build 629?
Here what I tried:
D:\Users\abc>ppm install XML::LibXML
Installing package 'XML-LibXML'...
Error installing package 'XML-LibXML': Could not locate a PPD file for package XML-LibXML
And other way:
D:\Users\abc\Downloads\XML-LibXML-2.0014\XML-LibXML-2.0014>perl Makefile.PL
Couldn't find your C compiler
Compilation failed in require at Makefile.PL line 83.
BEGIN failed--compilation aborted at Makefile.PL line 83.
Maybe your ppm package manager is not able to find a correct package to your perl version.
You could try to find and install like one this. Maybe one of them works for you.
ppm install http://www.bribes.org/perl/ppm/XML-LibXML.ppd
ppm install http://theoryx5.uwinnipeg.ca/ppmpackages/XML-LibXML.ppd
ppm install http://trouchelle.com/ppm/XML-LibXML.ppd
ppm install http://ppm.tcool.org/archives/XML-LibXML.ppd
ppm install http://theoryx5.uwinnipeg.ca/ppms/XML-LibXML.ppd
Howto add a new repo too ppm: http://www.bribes.org/perl/ppmdir.html
I installed the CPAN version of PPM on my machine;
Downloaded the PPM-2.1.8.tar.gz source, extracted the files, made cd into the unpacked directory, and run
perl Makefile.PL
nmake
nmake install
But the nmake was not installed on my machine so I installed it.
After this, I able to install XML-LibXML from the uwinnipeg 5.6 repository by issuing the command
ppm install http://theoryx5.uwinnipeg.ca/ppmpackages/XML-LibXML.ppd
It also installed the prerequisite ppm packages, as well as the required libxml2.dll library in the environment variable PATH.
I want to install File-MimeInfo-0.16 package and run "perl Build.PL", it threw out:
Could not create MYMETA files
Creating new 'Build' script for 'File-MimeInfo' version '0.16'
Does anyone know how to fix? thanks in advance
The package that creates MYMETA.json and MYMETA.yml files is called CPAN::Meta. You can install it with one of the following:
Mac OS X: type sudo port install p5-cpan-meta in the terminal (assuming you have MacPorts installed)
Ubuntu Linux: type sudo apt-get install libcpan-meta-perl in the terminal
Other platforms: run the CPAN shell (typically by typing cpan from a terminal or command prompt), and type:
install CPAN::Meta
You can install File::MimeInfo from CPAN directly.
cpan File::MineInfo
OR, if you want to do it manually,
Install the following dependencies if you don't have them:
Carp
Exporter
Fcntl
Pod::Usage
File::Basename
File::BaseDir
File::DesktopEntry
Download the distribution
wget http://search.cpan.org/CPAN/authors/id/P/PA/PARDUS/File-MimeInfo/File-MimeInfo-0.16.tar.gz
Run the following sequence of command:
tar xvzf File-MimeInfo-0.16.tar.gz
cd File-MimeInfo-0.16
perl MakeFile.PL
make test
make install
I do not know why you want to run perl Build.PL.
But as far as installation of the module is concerned, above step will get you the module installed for sure (Provided you take care of the dependencies...OR use CPAN)
PS: Above instruction are meant for Linux platform. I have never done any perlish thing on windows.
I just tried Ora2Pg on my Ubuntu Jaunty Jackalope.
First of all, the installation was hard, but after downloading a few debs & rpms here & there, I was finally managed to install ora2pg via synaptic.
However, when I try to run this command
ora2pg /tmp/ora2pg.conf
I am getting a
install_driver(Oracle) failed: Can't load '/usr/lib/perl5/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: libclntsh.so.10.1: cannot open shared object file: No such file or directory at /usr/lib/perl/5.10/DynaLoader.pm line 196.
at (eval 14) line 3
Compilation failed in require at (eval 14) line 3.
Perhaps a required shared library or dll isn't installed where expected
at /usr/share/perl5/Ora2Pg.pm line 566
Any ideas what's wrong and how to fix it?
Note: I don't perl. I just started browsing a bit it because of this.
This is the correct sequence for installation:
apt-get install libdbi-perl
apt-get install alien dpkg-dev debhelper build-essential
apt-get install libaio1
apt-get install make
apt-get install alien
apt-get install rpm
apt-get install libpq-dev
download DBD-Oracle-1.74 or last version
download DBD-Pg-3.5.3 or last version
download DBI-1.636 or last version
download ora2pg-17.5 or last version
download oracle-instantclient12.1-sqlplus-12.1.0.2.0-1.x86_64.rpm
download oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
download oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm
after extract rpm package and install:
alien oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
alien oracle-instantclient12.1-sqlplus-12.1.0.2.0-1.x86_64.rpm
alien oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm
dpkg -i oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.deb
dpkg -i oracle-instantclient12.1-devel_12.1.0.2.0-2_amd64.deb
dpkg -i oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.deb
then:
export LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib
the path of oracle client installation
export ORACLE_HOME=/usr/lib/oracle/12.1/client64/
then, istall the perl extension for Oracle and Postgres
cd DBI-1.636
perl Makefile.PL
make && makeinstall
cd DBD-Oracle-1.74 o DBD-Oracle-1.64
perl Makefile.PL
make && makeinstall
cd DBD-Pg-3.5.3
perl Makefile.PL
make && makeinstall
and finally, install
cd ora2pg-17.x
perl Makefile.PL
make && makeinstall
check in the version is correct
ora2pg -v
and last configure ora2pg.conf on /etc/ora2pg/
insert in file, the configuration for connect to Oracle and Postgres.
DBD::Oracle can't find the Oracle client libraries because they're not in your library path. If you don't have the Oracle client libraries and you don't have a sysadmin to provide them for you, then you need to get the "Oracle Instantclient" package from the oracle website and install it. If you already have Instantclient installed, then you need to add its lib directory (something like /usr/lib/oracle/instantclient/lib or /opt/ora/instantclient10_1/lib) to your library path -- either by adding a line to /etc/ld.so.conf and running ldconfig as root, or by setting the LD_LIBRARY_PATH environment variable.
Pre-installation steps:
ORACLE Client must be installed and ORACLE_HOME must be set.
Install perl (version 5.6 and above)
Installation steps:
Install DBI (database interface module)
apt-get install cpanminus (for ubuntu)
yum install cpanminus (for Linux)
cpanm DBI
Install DBD::Oracle and DBD::Pg
cpanm DBD::Oracle
cpanm DBD::Pg
Download the latest version of ora2pg from http://sourceforge.net/projects/ora2pg/ and run the following commands:
tar -xvf ora2pg-18.0.tar
cd ora2pg-18.0/
perl Makefile.PL
su root
make
make install
Do the changes as per req
By default Ora2Pg will look to ora2pg.conf configuration file into /etc/ora2pg/ directory.
ORACLE_HOME /app/oracle/product/11.2.0
ORACLE_DSN dbi:Oracle:host=[hostname];sid=[SID name]
ORACLE_USER [SYSTEM]
ORACLE_PWD [password]
USER_GRANTS 1
Check the version of pra2pg:
ora2pg SHOW_VERSION
Run the below command
ora2pg -c /etc/ora2pg/ora2pg.conf
ora2pg -c /etc/ora2pg/ora2pg.conf -p -P 10 -J 10 -L 1000000
.sql file will create in the current directory have converted data into PostgreSql
Hope this will work.