Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

install PDFlib on FreeBSD

Posted on 2010-08-24
5
Medium Priority
?
2,994 Views
Last Modified: 2013-12-06
I trying to add pdflib to my php on FreeBSD


This is from PHP .net
Step 1: PDFlib http://www.pdflib.com/ 
   download PDFlib-Lite: http://www.pdflib.com/download/pdflib-family/pdflib-lite-7/ 
   extract: tar -xzvf PDFlib-Lite-X.X.XpX.tar.gz
   compile: cd PDFlib-Lite-X.X.XpX && ./configure && make && make install



Step 2: Pecl for PDFlib http://pecl.php.net/package/pdflib 
   install:
      install dependences: phpize (php5-dev package)
      pecl install pdflib
         path to pdflib installation? :/usr/local

Step 3: php.ini
   extension=pdf.so

Step 4:
   /etc/init.d/apache2 reload


I go to step 2
and
pecl install pdflib
give me pecl command not found
0
Comment
Question by:CMDAI
  • 3
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
jodix2002 earned 2000 total points
ID: 33510305
please try to upgrade pear: 'pear upgrade PEAR'

or if that doesn't work, you can also try: 'pear upgrade PEAR-x.x.x' (replace x.x.x with the version number you want to install)
0
 
LVL 1

Author Comment

by:CMDAI
ID: 33518056


server# pear list
PHP Warning:  Module 'ftp' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20                                  060613/pdf.so' - Shared object "libpdf.so.8" not found, required by "pdf.so" in                                   Unknown on line 0
Installed packages, channel pear.php.net:
=========================================
Package          Version State
Archive_Tar      1.3.3   stable
Console_Getopt   1.2.3   stable
PEAR             1.9.0   stable
Structures_Graph 1.0.2   stable
server# pear upgrade PEAR
PHP Warning:  Module 'ftp' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20                                  060613/pdf.so' - Shared object "libpdf.so.8" not found, required by "pdf.so" in                                   Unknown on line 0
downloading PEAR-1.9.1.tar ...
Starting to download PEAR-1.9.1.tar (Unknown size)
.....done: 1,794,560 bytes
downloading Archive_Tar-1.3.7.tar ...
Starting to download Archive_Tar-1.3.7.tar (Unknown size)
...done: 94,208 bytes
downloading Structures_Graph-1.0.3.tar ...
Starting to download Structures_Graph-1.0.3.tar (Unknown size)
...done: 207,872 bytes
downloading XML_Util-1.2.1.tar ...
Starting to download XML_Util-1.2.1.tar (Unknown size)
...done: 123,392 bytes
upgrade ok: channel://pear.php.net/Archive_Tar-1.3.7
upgrade ok: channel://pear.php.net/Structures_Graph-1.0.3
upgrade ok: channel://pear.php.net/XML_Util-1.2.1
upgrade ok: channel://pear.php.net/PEAR-1.9.1
PEAR: Optional feature webinstaller available (PEAR's web-based installer)
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)
PEAR: To install optional features use "pear install pear/PEAR#featurename"

Open in new window

0
 
LVL 1

Author Comment

by:CMDAI
ID: 33518065
I got updated, now i get a different error, any ideas

#pecl install pdflib

Fatal error: Call to undefined function preg_match() in /usr/local/share/pear/PEAR/Frontend/CLI.php on line 57

0
 
LVL 3

Expert Comment

by:jodix2002
ID: 33518086
what happen if you try this:

pear install pecl/pdflib
0
 
LVL 1

Author Comment

by:CMDAI
ID: 33518430
Thanks alot,
sorry for noobness,

This worked: pear install pecl/pdflib
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month21 days, 1 hour left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question