ffmpeg-php-Installation bei server4you vserver (Debian, confixx)

visus

Grünschnabel
Hi,

also da ich Videos à la youtube auf meinem Server moeglich machen wollte (d.h. Upload in Format xyz, Server wandelt die Datei automatisch in flv um, ...), musste ich ffmpeg-php installieren... Daher tat ich folgendes:

erstmal ein Update des Systems:
$ apt-get update
$ apt-get upgrade

dann habe ich via Confixx einen Benutzer angelegt (hier web1) und da ich die Shell ja schon offen hatte...
$ cd /var/www/web1/html/
$ rm -rf index.html
$ echo "<?php phpinfo(); ?>" > index.php

auf http://web1.xxx/ habe ich dann folgendes entnommen:
'../configure' '--prefix=/usr' '--with-apxs2=/usr/bin/apxs2' '--with-config-file-path=/etc/php4/apache2' '--enable-memory-limit' '--disable-debug' '--with-regex=php' '--disable-rpath' '--disable-static' '--with-pic' '--with-layout=GNU' '--with-pear=/usr/share/php' '--enable-calendar' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype' '--with-db4' '--with-iconv' '--enable-exif' '--enable-filepro' '--enable-ftp' '--with-gettext' '--enable-mbstring' '--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets' '--enable-wddx' '--disable-xml' '--with-expat-dir=/usr' '--with-xmlrpc' '--enable-yp' '--with-zlib' '--without-pgsql' '--with-kerberos=/usr' '--with-openssl=/usr' '--with-zip=/usr' '--enable-dbx' '--with-mime-magic=/usr/share/misc/file/magic.mime' '--with-exec-dir=/usr/lib/php4/libexec' '--without-mm' '--without-mysql' '--without-sybase-ct'

ffmpeg-php ist abhaengig von ffmpeg, also muss ich das erstmal ziehen. Das geht am leichtesten mit subversion, also erstmal subversion installieren:
$ apt-get install subversion

Dann die Installation von ffmpeg:
$ cd /usr/src/
$ svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
$ cd ffmpeg/
$ ./configure
$ make
$ make install

Nun brauchte ich ffmpeg-php:
$ cd ..
$ svn co https://svn.sourceforge.net/svnroot/ffmpeg-php/trunk/ffmpeg-php

Und da ffmpeg-php eine Extension zu php ist, muss ich auch php neu installieren.
$ wget http://de3.php.net/get/php-4.4.7.tar.bz2/from/de.php.net/mirror
$ tar xjvf php-4.4.7.tar.bz2
$ rm -rf php-4.4.7.tar.bz2
$ cd php-4.4.7/
$ cp -R ../ffmpeg-php/ ./ext/

Nun wirds problematisch. Ich habe zunaechst mal die Argumente von configure angepasst und ausgefuehrt:
$ ./configure '--prefix=/usr' '--with-apxs2=/usr/bin/apxs2' '--with-config-file-path=/etc/php4/apache2' '--enable-memory-limit' '--disable-debug' '--with-regex=php' '--disable-rpath' '--disable-static' '--with-pic' '--with-layout=GNU' '--with-pear=/usr/share/php' '--enable-calendar' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype' '--with-db4' '--with-iconv' '--enable-exif' '--enable-filepro' '--enable-ftp' '--with-gettext' '--enable-mbstring' '--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets' '--enable-wddx' '--disable-xml' '--with-expat-dir=/usr' '--with-xmlrpc' '--enable-yp' '--with-zlib' '--without-pgsql' '--with-kerberos=/usr' '--with-openssl=/usr' '--with-zip=/usr' '--enable-dbx' '--with-mime-magic=/usr/share/misc/file/magic.mime' '--with-exec-dir=/usr/lib/php4/libexec' '--without-mm' '--without-mysql' '--without-sybase-ct' '--with-ffmpeg=yes' '--with-apxs2=/usr/bin/apxs'

Dabei traten nacheinander ein paar fehlende Pakete oder Dateien auf, die ich nachgeholt habe:
$ apt-get install apache-dev
$ cp /usr/src/php-4.4.7/ext/pcre/pcrelib/pcre.h /usr/include/
$ apt-get install libpcre3 libpcre3
$ apt-get install zlib1g-dev
$ apt-get install libbz2-1.0 libbz2-dev
$ apt-get install libzzip-0-12
$ apt-get install libzzip-dev

Daraufhin funktioniert configure. Jedoch bricht make relativ schnell ab und sagt mir folgendes:
/usr/src/php-4.4.7/sapi/apache2handler/php_apache.h:49: error: syntax error before '*' token
/usr/src/php-4.4.7/sapi/apache2handler/php_apache.h:50: error: syntax error before '*' token
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: In function `php_apache_sapi_ub_write':
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:71: error: `ctx' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:71: error: (Each undeclared identifier is reported only once
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:71: error: for each function it appears in.)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: In function `php_apache_sapi_header_handler':
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:86: error: `ctx' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:105: warning: assignment makes pointer from integer without a cast
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: In function `php_apache_sapi_send_headers':
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:121: error: `ctx' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: In function `php_apache_sapi_read_post':
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:139: error: `apr_size_t' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:139: error: syntax error before "len"
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:140: error: `ctx' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:142: error: `apr_bucket_brigade' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:142: error: `brigade' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:146: error: `len' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:154: error: structure has no member named `input_filters'
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:154: error: `AP_MODE_READBYTES' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:154: error: `APR_BLOCK_READ' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:154: error: `APR_SUCCESS' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:157: error: `tlen' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: In function `php_apache_sapi_get_stat':
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:171: error: `ctx' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: In function `php_apache_sapi_read_cookies':
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:196: error: `ctx' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:199: warning: assignment makes pointer from integer without a cast
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: In function `php_apache_sapi_getenv':
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:208: error: `ctx' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:211: warning: assignment makes pointer from integer without a cast
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: In function `php_apache_sapi_register_variables':
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:219: error: `ctx' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:220: error: syntax error before '*' token
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:224: error: `apr_table_entry_t' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:224: error: `elts' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:224: error: syntax error before ')' token
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:224: error: `arr' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: In function `php_apache_sapi_flush':
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:241: error: `ctx' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: In function `php_apache_sapi_log_message':
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:267: error: `ctx' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:273: error: `APLOG_STARTUP' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: In function `php_apache_sapi_log_message_ex':
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:282: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: At top level:
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:329: error: syntax error before "php_apache_server_shutdown"
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: In function `php_apache_server_shutdown':
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:336: error: `APR_SUCCESS' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: At top level:
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:339: error: syntax error before '*' token
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: In function `php_apache_add_version':
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:343: error: `p' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:343: error: too many arguments to function `ap_add_version_component'
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: At top level:
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:347: error: syntax error before '*' token
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:365: error: syntax error before '*' token
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: In function `php_apache_server_startup':
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:372: error: `s' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:379: error: `apr_pool_cleanup_null' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:392: error: `pconf' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: At top level:
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:398: error: syntax error before "php_server_context_cleanup"
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: In function `php_server_context_cleanup':
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:402: error: `APR_SUCCESS' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: At top level:
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:405: error: syntax error before "php_struct"
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: In function `php_apache_request_ctor':
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:411: error: `tsrm_ls' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:411: error: `r' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:431: warning: assignment makes pointer from integer without a cast
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:433: error: `ctx' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: In function `php_apache_ini_dtor':
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:452: error: syntax error before ')' token
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: In function `php_handler':
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:460: error: `ctx' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:462: error: `apr_bucket_brigade' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:462: error: `brigade' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:463: error: `apr_bucket' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:463: error: `bucket' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:464: error: `apr_status_t' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:464: error: syntax error before "rv"
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:470: error: request for member `module_index' in something not a structure or union
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:475: warning: assignment makes pointer from integer without a cast
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:480: error: `apr_pool_cleanup_null' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:491: error: structure has no member named `protection'
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:491: error: `APR_UEXECUTE' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:499: error: structure has no member named `used_path_info'
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:500: error: `AP_REQ_REJECT_PATH_INFO' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:511: error: structure has no member named `filetype'
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:516: error: structure has no member named `filetype'
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:516: error: `APR_DIR' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:536: error: structure has no member named `bucket_alloc'
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:563: error: structure has no member named `mtime'
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:589: warning: assignment makes pointer from integer without a cast
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:600: error: structure has no member named `bucket_alloc'
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:603: error: `rv' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:603: error: structure has no member named `output_filters'
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:604: error: `APR_SUCCESS' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: At top level:
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:617: error: syntax error before '*' token
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: In function `php_register_hook':
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:619: error: `APR_HOOK_MIDDLE' undeclared (first use in this function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c: At top level:
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:624: error: syntax error before "module"
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:624: error: conflicting types for `php4_module'
/usr/src/php-4.4.7/sapi/apache2handler/php_apache.h:29: error: previous declaration of `php4_module'
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:625: error: `STANDARD20_MODULE_STUFF' undeclared here (not in a function)
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:625: error: initializer element is not constant
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:625: error: (near initialization for `php4_module.version')
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:626: warning: initialization makes integer from pointer without a cast
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:627: warning: initialization makes integer from pointer without a cast
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:630: warning: initialization from incompatible pointer type
/usr/src/php-4.4.7/sapi/apache2handler/sapi_apache2.c:632: warning: initialization makes integer from pointer without a cast
make: *** [sapi/apache2handler/sapi_apache2.lo] Error 1

Hier komme ich nicht weiter...

Nochmal:
System ist ein vserver von Server4you mit Debian und confixx. (komplett jungfraeulig)

Any hints?

visus
 
Zurück