Salut,

Selon l'output de php -m, je n'ai aucune des extensions php suivantes : zip, zlib, cURL. J'ai besoin de ces extensions pour faire fonctionner owncloud.

J'ai pourtant effectuer les opérations demandées, à savoir : phpize && ./configure && make && make install. Les librairies sont bien installées vers le répertoire des extensions, mais malgré cela php n'arrive pas à reconnaitre les librairies.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
root@audio-mon[10.10.10.82] ~/DOWNLOADS/php-5.5.23/ext/zip # phpize 
Configuring for:
PHP Api Version:         20121113
Zend Module Api No:      20121212
Zend Extension Api No:   220121212
root@audio-mon[10.10.10.82] ~/DOWNLOADS/php-5.5.23/ext/zip # ./configure 
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20121212
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking for zip archive read/writesupport... yes, shared
checking for the location of libz... no
checking pcre install prefix... no
checking for the location of zlib... /usr
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
 
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
root@audio-mon[10.10.10.82] ~/DOWNLOADS/php-5.5.23/ext/zip # make
/bin/bash /root/DOWNLOADS/php-5.5.23/ext/zip/libtool --mode=install cp ./zip.la /root/DOWNLOADS/php-5.5.23/ext/zip/modules
cp ./.libs/zip.so /root/DOWNLOADS/php-5.5.23/ext/zip/modules/zip.so
cp ./.libs/zip.lai /root/DOWNLOADS/php-5.5.23/ext/zip/modules/zip.la
PATH="$PATH:/sbin" ldconfig -n /root/DOWNLOADS/php-5.5.23/ext/zip/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /root/DOWNLOADS/php-5.5.23/ext/zip/modules
 
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'
 
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 
Build complete.
Don't forget to run 'make test'.
 
root@audio-mon[10.10.10.82] ~/DOWNLOADS/php-5.5.23/ext/zip # make install
Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20121212/
root@audio-mon[10.10.10.82] ~/DOWNLOADS/php-5.5.23/ext/zip # 
root@audio-mon[10.10.10.82] ~/DOWNLOADS/php-5.5.23/ext/zip # php -m
PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) 'gd.so' in Unknown on line 0
 
Warning: PHP Startup: Invalid library (maybe not a PHP library) 'gd.so' in Unknown on line 0
PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) 'zip.so' in Unknown on line 0
 
Warning: PHP Startup: Invalid library (maybe not a PHP library) 'zip.so' in Unknown on line 0
PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) 'zlib.so' in Unknown on line 0
 
Warning: PHP Startup: Invalid library (maybe not a PHP library) 'zlib.so' in Unknown on line 0
[PHP Modules]
Core
ctype
date
dom
ereg
fileinfo
filter
gd
hash
iconv
json
libxml
pcre
PDO
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
 
[Zend Modules]
 
root@audio-mon[10.10.10.82] ~/DOWNLOADS/php-5.5.23/ext/zip #
pourtant un nm sur la lib en question montre plusieurs symboles php

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
root@audio-mon[10.10.10.82] /usr/local/lib/php/extensions/no-debug-non-zts-20121212 # nm zip.so | grep php
                 U _php_stream_alloc
                 U _php_stream_free
                 U _php_stream_mkdir
                 U _php_stream_open_wrapper_ex
                 U _php_stream_scandir
                 U _php_stream_stat_path
                 U _php_stream_write
                 U ap_php_snprintf
                 U php_basename
                 U php_check_open_basedir
                 U php_dirname
                 U php_error_docref0
                 U php_info_print_table_end
                 U php_info_print_table_row
                 U php_info_print_table_start
                 U php_pcre_exec
                 U php_register_url_stream_wrapper
                 U php_sprintf
                 U php_stat
                 U php_stream_dirent_alphasort
000000000000ab00 t php_stream_zip_open
000000000000a920 t php_stream_zip_opener
0000000000216a20 d php_stream_zip_wrapper
0000000000216a40 d php_stream_zipio_ops
                 U php_unregister_url_stream_wrapper
0000000000009720 t php_zip_add_file.isra.10.constprop.14
0000000000009e20 t php_zip_add_from_pattern.isra.12
0000000000007f60 t php_zip_entry_get_info.isra.2
0000000000008450 t php_zip_extract_file.isra.4
0000000000007560 t php_zip_free_dir
0000000000007100 t php_zip_free_entry
00000000000081d0 t php_zip_get_from.isra.3
0000000000006160 t php_zip_get_num_files
0000000000007e50 t php_zip_get_properties
0000000000007ac0 t php_zip_get_property_ptr_ptr
00000000000099c0 t php_zip_glob
0000000000007c20 t php_zip_has_property
0000000000007850 t php_zip_object_free_storage
00000000000077b0 t php_zip_object_new
000000000000a7d0 t php_zip_ops_close
000000000000a4d0 t php_zip_ops_flush
000000000000a840 t php_zip_ops_read
000000000000a4e0 t php_zip_ops_stat
000000000000a4c0 t php_zip_ops_write
0000000000009b90 t php_zip_pcre
0000000000005e60 t php_zip_property_reader
0000000000007900 t php_zip_read_property
0000000000008e30 t php_zip_register_prop_handler.constprop.13
00000000000074a0 t php_zip_status
0000000000007480 t php_zip_status_sys
0000000000005a30 t php_zipobj_get_filename
0000000000006ef0 t php_zipobj_get_zip_comment
root@audio-mon[10.10.10.82] /usr/local/lib/php/extensions/no-debug-non-zts-20121212 #