Discussion:
How to install PDF Lib? (Issues installing with CPAN)
(too old to reply)
Denis BUCHER (lists)
2013-01-07 17:25:03 UTC
Permalink
Dear all,

I am trying to install PDF Lib but it doesn't work or I'm doing
something wrong.

This is what I did :

|cpan> install PDF::Template
cpan> installPDFLib|

But it says :

PDFLib requires the pdflib package from http://www.pdflib.com/
version 4.0 or higher to be installed, and the perl interface
"pdflib_pl.pm" enabled to be able to work properly. Please install
that before trying to install this module.

Therefore I unzipped PDFlib-Lite-7.0.5p3.tar.gz, ./configure, make, make
install.

But still the same message !

And by the way, I don't have any clue on how to install pdflib_pl.pm ?

Any help would be appreciated !

Thanks a lot in advance

Denis

P.S. Our server runs under CentOS 5.8
milki
2013-01-07 18:32:03 UTC
Permalink
Post by Denis BUCHER (lists)
PDFLib requires the pdflib package from http://www.pdflib.com/
version 4.0 or higher to be installed, and the perl interface
"pdflib_pl.pm" enabled to be able to work properly. Please install
that before trying to install this module.
Denis
P.S. Our server runs under CentOS 5.8
A simple google search yielded [0] which seems to indicate there are a
couple more steps needed. It suggests using pecl as well as indicates
there should be another prompt for the installation path of pdflib.

[0] http://imountain.com/blog/2008/06/20/howto-install-pdflitepdflib-on-a-centosrhel-server/
--
milki
milki
2013-01-07 20:25:52 UTC
Permalink
Post by milki
Post by Denis BUCHER (lists)
PDFLib requires the pdflib package from http://www.pdflib.com/
version 4.0 or higher to be installed, and the perl interface
"pdflib_pl.pm" enabled to be able to work properly. Please install
that before trying to install this module.
A simple google search yielded [0] which seems to indicate there are a
couple more steps needed. It suggests using pecl as well as indicates
there should be another prompt for the installation path of pdflib.
[0] http://imountain.com/blog/2008/06/20/howto-install-pdflitepdflib-on-a-centosrhel-server/
Dear Milki,
Thanks for your reply, I knew about that page, but at first I didn't try
pecl because I don't need PDFLib for PHP.
Now I followed your suggestion and tried, but same problem: I still get
the same message...
Hm. That makes sense to ignore pecl then. Is the installation not asking
you for the installation path for pdflib? Did the pdflib install the
libpdf.so file correctly?
--
milki
Denis BUCHER (lists)
2013-01-07 22:30:48 UTC
Permalink
Post by milki
Post by milki
Post by Denis BUCHER (lists)
PDFLib requires the pdflib package from http://www.pdflib.com/
version 4.0 or higher to be installed, and the perl interface
"pdflib_pl.pm" enabled to be able to work properly. Please install
that before trying to install this module.
A simple google search yielded [0] which seems to indicate there are a
couple more steps needed. It suggests using pecl as well as indicates
there should be another prompt for the installation path of pdflib.
[0] http://imountain.com/blog/2008/06/20/howto-install-pdflitepdflib-on-a-centosrhel-server/
Dear Milki,
Thanks for your reply, I knew about that page, but at first I didn't try
pecl because I don't need PDFLib for PHP.
Now I followed your suggestion and tried, but same problem: I still get
the same message...
Hm. That makes sense to ignore pecl then. Is the installation not asking
you for the installation path for pdflib? Did the pdflib install the
libpdf.so file correctly?
No it didn't ask for path, but yes it looks like libpdf.so was correctly
installed :
# find / -name libpdf.so
/usr/local/lib/libpdf.so

Is the problem now maybe to have "/the perl interface "pdflib_pl.pm"
enabled to be able to work properly/" ?

Denis
milki
2013-01-07 22:55:17 UTC
Permalink
Post by Denis BUCHER (lists)
Post by milki
Post by milki
Post by Denis BUCHER (lists)
PDFLib requires the pdflib package from http://www.pdflib.com/
version 4.0 or higher to be installed, and the perl interface
"pdflib_pl.pm" enabled to be able to work properly. Please install
that before trying to install this module.
A simple google search yielded [0] which seems to indicate there are a
couple more steps needed. It suggests using pecl as well as indicates
there should be another prompt for the installation path of pdflib.
[0] http://imountain.com/blog/2008/06/20/howto-install-pdflitepdflib-on-a-centosrhel-server/
Dear Milki,
Thanks for your reply, I knew about that page, but at first I didn't try
pecl because I don't need PDFLib for PHP.
Now I followed your suggestion and tried, but same problem: I still get
the same message...
Hm. That makes sense to ignore pecl then. Is the installation not asking
you for the installation path for pdflib? Did the pdflib install the
libpdf.so file correctly?
No it didn't ask for path, but yes it looks like libpdf.so was correctly
# find / -name libpdf.so
/usr/local/lib/libpdf.so
Is the problem now maybe to have "/the perl interface "pdflib_pl.pm"
enabled to be able to work properly/" ?
That might be it. [0] suggests there is a --with-perl option for
PDFLib-Lite.

[0]
http://www.freebsd.org/cgi/cvsweb.cgi/ports/print/pdflib/Makefile?rev=1.65;content-type=text%2Fplain
--
milki
Denis BUCHER (lists)
2013-01-07 23:16:30 UTC
Permalink
Post by milki
Post by Denis BUCHER (lists)
Post by milki
Post by milki
Post by Denis BUCHER (lists)
PDFLib requires the pdflib package from http://www.pdflib.com/
version 4.0 or higher to be installed, and the perl interface
"pdflib_pl.pm" enabled to be able to work properly. Please install
that before trying to install this module.
A simple google search yielded [0] which seems to indicate there are a
couple more steps needed. It suggests using pecl as well as indicates
there should be another prompt for the installation path of pdflib.
[0] http://imountain.com/blog/2008/06/20/howto-install-pdflitepdflib-on-a-centosrhel-server/
Dear Milki,
Thanks for your reply, I knew about that page, but at first I didn't try
pecl because I don't need PDFLib for PHP.
Now I followed your suggestion and tried, but same problem: I still get
the same message...
Hm. That makes sense to ignore pecl then. Is the installation not asking
you for the installation path for pdflib? Did the pdflib install the
libpdf.so file correctly?
No it didn't ask for path, but yes it looks like libpdf.so was correctly
# find / -name libpdf.so
/usr/local/lib/libpdf.so
Is the problem now maybe to have "/the perl interface "pdflib_pl.pm"
enabled to be able to work properly/" ?
That might be it. [0] suggests there is a --with-perl option for
PDFLib-Lite.
[0]
http://www.freebsd.org/cgi/cvsweb.cgi/ports/print/pdflib/Makefile?rev=1.65;content-type=text%2Fplain
By default, it says "/Perl language binding for PDFlib: yes/", and with
"./configure --with-perl=/usr/bin/perl" it looks the same.
(I did make clean, make, make install and tried cpan again)

Denis
milki
2013-01-07 23:22:08 UTC
Permalink
Post by Denis BUCHER (lists)
Post by milki
That might be it. [0] suggests there is a --with-perl option for
PDFLib-Lite.
[0]
http://www.freebsd.org/cgi/cvsweb.cgi/ports/print/pdflib/Makefile?rev=1.65;content-type=text%2Fplain
By default, it says "/Perl language binding for PDFlib: yes/", and with
"./configure --with-perl=/usr/bin/perl" it looks the same.
(I did make clean, make, make install and tried cpan again)
Enabling this option should create pdflib_pl.pm. If it doesn't exist,
I'm not sure of any other methods for debugging this problem.
--
milki
Denis BUCHER (lists)
2013-01-07 23:26:29 UTC
Permalink
Post by milki
Post by Denis BUCHER (lists)
Post by milki
That might be it. [0] suggests there is a --with-perl option for
PDFLib-Lite.
[0]
http://www.freebsd.org/cgi/cvsweb.cgi/ports/print/pdflib/Makefile?rev=1.65;content-type=text%2Fplain
By default, it says "/Perl language binding for PDFlib: yes/", and with
"./configure --with-perl=/usr/bin/perl" it looks the same.
(I did make clean, make, make install and tried cpan again)
Enabling this option should create pdflib_pl.pm. If it doesn't exist,
I'm not sure of any other methods for debugging this problem.
Yes that's strange because pdflib_pl.pm is only found in the original
unzipped directory :
# find / -name pdflib_pl.pm
/root/PDFlib-Lite-7.0.5p3/bind/pdflib/perl/pdflib_pl.pm

Denis
Denis BUCHER (lists)
2013-01-08 16:57:12 UTC
Permalink
Post by Denis BUCHER (lists)
Post by milki
Post by Denis BUCHER (lists)
Post by milki
That might be it. [0] suggests there is a --with-perl option for
PDFLib-Lite.
[0]
http://www.freebsd.org/cgi/cvsweb.cgi/ports/print/pdflib/Makefile?rev=1.65;content-type=text%2Fplain
By default, it says "/Perl language binding for PDFlib: yes/", and with
"./configure --with-perl=/usr/bin/perl" it looks the same.
(I did make clean, make, make install and tried cpan again)
Enabling this option should create pdflib_pl.pm. If it doesn't exist,
I'm not sure of any other methods for debugging this problem.
Yes that's strange because pdflib_pl.pm is only found in the original
# find / -name pdflib_pl.pm
/root/PDFlib-Lite-7.0.5p3/bind/pdflib/perl/pdflib_pl.pm
Do you know if there is maybe another perl mailing-list where someone
would have an idea about this strange problem ?
Or maybe we could use another solution to generate PDF from perl ?

Anyway, thank you very much for all your help :-)

Denis

Denis BUCHER (lists)
2013-01-07 20:17:33 UTC
Permalink
Post by milki
Post by Denis BUCHER (lists)
PDFLib requires the pdflib package from http://www.pdflib.com/
version 4.0 or higher to be installed, and the perl interface
"pdflib_pl.pm" enabled to be able to work properly. Please install
that before trying to install this module.
A simple google search yielded [0] which seems to indicate there are a
couple more steps needed. It suggests using pecl as well as indicates
there should be another prompt for the installation path of pdflib.
[0] http://imountain.com/blog/2008/06/20/howto-install-pdflitepdflib-on-a-centosrhel-server/
Dear Milki,

Thanks for your reply, I knew about that page, but at first I didn't try
pecl because I don't need PDFLib for PHP.
Now I followed your suggestion and tried, but same problem: I still get
the same message...

Denis
Loading...