Solved

install PDFlib on FreeBSD

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
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…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

706 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now