Solved

install PDFlib on FreeBSD

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
linux  centos   virtualization network quetion 6 84
text in table need to be center of the box 4 83
Control Number of Log Files -Perl 7 94
aix unix tar error 3 82
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…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…
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.

730 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