Solved

install PDFlib on FreeBSD

Posted on 2010-08-24
5
2,829 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 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Shell script errors 10 141
Linux : taking backup different mount points under the same directory 8 87
unix in java example 9 70
unix solaris snoop command 6 113
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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.

809 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