Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to install zip extension work with php on linux. But i got error "Call to undefined function zip_open()"
I did:
Installed zziplib-0.13.59
Installed zip-1.10.2
Now i do not understand how to configure it with php and make it work.
And one more thing i can not view /usr/lib64 folder using ftp tool. directory is there but i can not open it.
# yum search zip
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: ftp.xxx.si
* centosplus: ftp.xxx.si
* epel: ftp.upjs.sk
* epel-debuginfo: ftp.upjs.sk
* epel-source: ftp.upjs.sk
* epel-testing: ftp.upjs.sk
* epel-testing-debuginfo: ftp.upjs.sk
* epel-testing-source: ftp.upjs.sk
* extras: ftp.xxx.si
* remi: remirpm.mirror.gymkl.ch
* remi-test: remirpm.mirror.gymkl.ch
* rpmforge: ftp-stud.fht-esslingen.de
* updates: ftp.xxxx.si
2093 packages excluded due to repository priority protections
=========================================================== Matched: zip ===========================================================
p7zip.i386 : Very high compression ratio file archiver
p7zip-debuginfo.i386 : Debug information for package p7zip
p7zip-plugins.i386 : Additional plugins for p7zip
php-pecl-zip.i386 : A zip management extension for php
php-pecl-zip-debuginfo.i386 : Debug information for package php-pecl-zip
php-zipstream.noarch : Streaming dynamic zip from PHP without writing to the disk
pigz.i386 : Parallel implementation of gzip
poco-zip.i386 : The Zip POCO component
This is what i got on search.
I already tried this , it says no package php-pecl-zip.
<code>
yum search zip
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.trouble-free.net
* extras: mirror.7x24web.net
* updates: mirror.net.cen.ct.gov
================================= Matched: zip =================================
mc.x86_64 : User-friendly text console file manager and visual shell
perl-Archive-Tar.noarch : A module for Perl manipulation of .tar files
kdeutils.x86_64 : K Desktop Environment - Utilities
bzip2.x86_64 : A file compression utility.
bzip2-devel.i386 : Header files and libraries for developing apps which will use
: bzip2.
bzip2-devel.x86_64 : Header files and libraries for developing apps which will
: use bzip2.
bzip2-libs.i386 : Libraries for applications using bzip2
bzip2-libs.x86_64 : Libraries for applications using bzip2
eject.x86_64 : A program that ejects removable media using software control.
gzip.x86_64 : The GNU data compression program.
java-1.4.2-gcj-compat-src.x86_64 : Source files for libgcj
libgsf.i386 : GNOME Structured File library
libgsf.x86_64 : GNOME Structured File library
mikmod.i386 : A MOD music file player.
mikmod.x86_64 : A MOD music file player.
mono-core.x86_64 : The Mono CIL runtime, suitable for running .NET code
ncompress.x86_64 : Fast compression and decompression utilities.
perl-Archive-Zip.noarch : Perl library for accessing Zip archives
perl-Compress-Zlib.x86_64 : A module providing Perl interfaces to the zlib
: compression library.
perl-String-CRC32.x86_64 : Perl interface for cyclic redundency check generation
unzip.x86_64 : A utility for unpacking zip files.
xarchiver.x86_64 : Archive manager for Xfce
xz.x86_64 : LZMA compression utilities
zip.x86_64 : A file compression and packaging utility compatible with PKZIP.
zlib.i386 : The zlib compression and decompression library.
zlib.x86_64 : The zlib compression and decompression library.
zlib-devel.i386 : Header files and libraries for Zlib development.
zlib-devel.x86_64 : Header files and libraries for Zlib development.
</code>
Mine php is 5.1.6.
Where can i find ./configure to config --with-zip?
yum install php-pecl-zip
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.trouble-free.net
* extras: mirror.trouble-free.net
* updates: mirror.net.cen.ct.gov
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php53-common.x86_64 0:5.3.3-1.el5_7.3 set to be updated
--> Processing Conflict: php53-common conflicts php-common
--> Finished Dependency Resolution
php53-common-5.3.3-1.el5_7.3.x86_64 from updates has depsolving problems
--> php53-common conflicts with php-common
Error: php53-common conflicts with php-common
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.