Solved

install PDFlib on FreeBSD

Posted on 2010-08-24
5
2,897 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
jodix2002 earned 500 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

717 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