Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: sandeep on February 07, 2011, 08:38:14 AM
-
Hello i need to install gdlibrary in tinycore linux need not find the package in tiny core repository suggest me a method to do this plz help !!!!! ???
-
I'm not sure what you really need, but it might be that the 'libgd.tcz' extension is what you are after?
I don't know how that relates to php or whether you need something else or in addition to it. You better provide some more precise description of what you are trying to achieve.
-
Thankyou Maro for ur quick reply
In ubuntu we install gd library by
apt-get install php5-gd and we restart apache and when we run phpinfo() it will show a separate coloum says gd library enabled. gd library is used to create images i tried libgd.tcz but that didnt worked for me
Iam attaching a link to give a clear idea of what i need
http://www.cyberciti.biz/faq/ubuntu-linux-install-or-add-php-gd-support-to-apache/
So plz help to install or create gd library for php in tiny core.. :-[
-
I'm not a php5 user, so I pretty much haven't got a clue. But looking a the file list (http://packages.ubuntu.com/maverick/i386/php5-gd/filelist) of said Ubuntu package you might need a gd library build for php5.
If your are lucky it will only be that you need a config file (in addition to the 'libgd.tcz' extension), but I somewhat doubt that this would be all. You better hope that the php5 extension maintainer (i.e. 'robc', IIRC) or some other experienced TC user can provide a better answer.
OTOH, I just spotted that the 'apache2-mod-php5.tcz' extension contains a 'gd.so' library. So it might be that you'll just need that extension (instead of the 'libgd.tcz' one).
-
php5 usually automatically builds in a bundled gd library (module).
Necessary steps:
1. Install apache2-mod-php5.tcz
2. Edit /usr/local/apache2/conf/php5/extensions/dist.ini to include extension=gd.so
3. Start apache with $ sudo apachectl -k start
Or use php5 extension with php as cgi module, no extension loading needed there since it's not shared but builtin. If there are special libraries needed for php extensions you can always easily grep them by running e.g. $ ldd /usr/local/lib/php/extensions/no-debug-zts-20090626/gd.so and watch out for missing libs.
[edit]
the info that libgd.tcz is needed for gd.so within dist.ini is not right as it's bundled - gonna change that in the next release.
[/edit]
-
Hi i tried ur instructions but when i run <?php phpinfo(); ?> its not showing gd support enabled also
i am attaching a sample code that i tried running it was giving me call to undefined function imagecreatetruecolor()
I tried the code by installing gd library on ubuntu and i was able to run on it
Help me i dont know what i am missing !!!
-
if phpinfo is not showing:
gd
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.12
GIF Read Support enabled
GIF Create Support enabled
JPEG Support enabled
libJPEG Version 6b
PNG Support enabled
libPNG Version 1.2.44
WBMP Support enabled
XPM Support enabled
XBM Support enabled
Directive Local Value Master Value
gd.jpeg_ignore_warning 0 0
then gd.so is not loaded. Check the ini files in the phpinfo section, which php scans for extensions. There must be one ini file which contains a line:
extension=gd.so
and when you run
$ ldd /usr/local/lib/php/extensions/no-debug-zts-20090626/gd.so
there has to be no "not found" entry. When you changed the extension=gd.so entry then restart apache with $ apachectl -k restart. I verified that it's working on my own tc and it produces the gd output from above.
-
Hi
Whn i run ldd command mentioned abov iam getton a list of files with. So extension. I enabled gd.so and also i imstalled lidgd.tcz i enabled extension in dist.ini and resttarted apache jst sugst hw.
to troublshoot dis isssue. plz
-
post your /usr/local/apache2/conf/php5/extensions/dist.ini
post the output of $ cat /usr/local/apache2/logs/error_log
-
gd is supported in php5. The bundled gd was used. The problem is that the bundled gd does not support jpeg.
Using this:
~$ echo '<?php var_dump(gd_info()); ?>' | php-cgi
Gives this:
X-Powered-By: PHP/5.3.3
Content-type: text/html
array(11) {
["GD Version"]=>
string(27) "bundled (2.0.34 compatible)"
["FreeType Support"]=>
bool(false)
["T1Lib Support"]=>
bool(false)
["GIF Read Support"]=>
bool(true)
["GIF Create Support"]=>
bool(true)
["JPEG Support"]=>
bool(false)
["PNG Support"]=>
bool(true)
["WBMP Support"]=>
bool(true)
["XPM Support"]=>
bool(false)
["XBM Support"]=>
bool(true)
["JIS-mapped Japanese Font Support"]=>
bool(false)
}
-
hm, I don't know why php-cgi doesn't support jpeg in gd, mod_php5.so with gd does support it, I cited exactly the part of phpinfo I getting from a tinycore + apache2 + apache2-mod-php5 running and extension=gd.so enabled.
@robc: do you use --with-jpeg-dir=/usr configure option for php like I do?
-
do you use --with-jpeg-dir=/usr configure option for php like I do?
No. I didn't notice a problem with php finding libjpeg during the build so I didn't include that switch. There are no failed tests in php5.test (in the source repo) that are related to gd or jpeg.
-
@gutmensch
my apache errorlog
[Thu Feb 10 06:21:23 2011] [notice] caught SIGTERM, shutting down
[Thu Feb 10 06:21:31 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Feb 10 06:21:31 2011] [notice] Digest: generating secret for digest authentication ...
[Thu Feb 10 06:21:31 2011] [notice] Digest: done
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20090626/gd.so' - /usr/local/lib/php/extensions/no-debug-zts-20090626/gd.so: undefined symbol: libiconv_open in Unknown on line 0
[Thu Feb 10 06:21:32 2011] [notice] Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8p DAV/2 PHP/5.3.5 configured -- resuming normal operations
i had found libiconv_open in unknown
So i installed libiconv.tcz and also i enabled the extension (extension=iconv.so) in dist.ini i am attaching my dist.ini file
; Extension INI File for apache2-mod-php5
; tinycore linux specific,
; (c) Robert Schumann 2010
;
; Enabled extensions don't need special dependencies, although
; for example you need mysql.tcz for mysql, mysqli or pdo-mysql
;
; Extensions enabled by default
extension=apc.so
extension=uploadprogress.so
extension=memcache.so
extension=suhosin.so
extension=calendar.so
extension=bcmath.so
extension=exif.so
extension=ftp.so
extension=gettext.so
extension=openssl.so
extension=mbstring.so
extension=pdo.so
extension=pdo_mysql.so
extension=sqlite.so
extension=mysql.so
extension=mysqli.so
extension=zip.so
extension=zlib.so
extension=soap.so
extension=sockets.so
extension=sysvmsg.so
extension=sysvsem.so
extension=sysvshm.so
extension=wddx.so
extension=shmop.so
; Extensions disabled by default
; requires ImageMagick.tcz
;extension=imagick.so
; requires bzip2-lib.tcz
;extension=bz2.so
; requires curl.tcz
extension=curl.so
; requires bsddb.tcz and libgdbm.tcz
;extension=dba.so
; requires enchant.tcz
;extension=enchant.so
; requires libgd.tcz
extension=gd.so
; requires gmp.tcz
;extension=gmp.so
; requires libiconv.tcz
extension=iconv.so
; requires icu.tcz
;extension=intl.so
; requires openldap.tcz
;extension=ldap.so
; requires libmcrypt.tcz
;extension=mcrypt.so
; requires postgresql-lib.tcz
;extension=pgsql.so
;extension=pdo.so
;extension=pdo_pgsql.so
;extension=pdo_mysql.so
; requires sqlite3.tcz
;extension=sqlite3.so
;extension=pdo_sqlite.so
; requires readline.tcz
;extension=readline.so
; requires recode.tcz
;extension=recode.so
; requires net-snmp.tcz
;extension=snmp.so
; requires libxslt.tcz
;extension=xsl.so
; requires unixODBC
;extension=odbc.so
:-[
-
@robc i am getting the same output that u got.... :) the problem is that gd.so module is nt getting loaded by my apache errorlog is showing me the msg....
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20090626/gd.so' - /usr/local/lib/php/extensions/no-debug-zts-20090626/gd.so: undefined symbol: libiconv_open in Unknown on line 0
[Thu Feb 10 06:21:32 2011] [notice] Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8p DAV/2 PHP/5.3.5 configured -- resuming normal operations
So i installed libiconv.tcz and also i enabled the extension (extension=iconv.so) in dist.ini i am attaching my dist.ini file
plz help
-
if you installed both php5 and apache2-mod-php5 then it's logical you get the same output as robc when running php-cgi, but it's useless this way. you have to use EITHER one OR the other. gd.so has nothing to do with php5.tcz extension. for running php web server you need only:
php5 + any web server capable of cgi handling and use cgi method to connect to php
OR
apache2-mod-php5 + apache2
do NOT mix them!!
what is the output or error_log when you install libiconv.tcz and restart?
-
Thank u for ur quick reply that was new input to me but still the log file looks same as i posted before
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Thu Feb 10 03:04:44 2011] [notice] Digest: generating secret for digest authentication ...
[Thu Feb 10 03:04:44 2011] [notice] Digest: done
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20090626/gd.so' - /usr/local/lib/php/extensions/no-debug-zts-20090626/gd.so: undefined symbol: libiconv_open in Unknown on line 0
[Thu Feb 10 03:04:45 2011] [notice] Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8p DAV/2 PHP/5.3.5 configured -- resuming normal operations
??? ??? ???
-
ok, I used a clean test system and had about the same error, it's strange that although fully updated I don't have this error on the machine I mentioned before. as far as I can see gd.so should be linked against libiconv but it isn't, neither is mod_php5.so - so now I'm rebuilding and testing this issue. I hope I can submit an update soon ;-)
-
@gutmensch
Thank u....waiting for ur updates :D ;D
-
ok, solution is simple - the current extension is not broken, all you have to do is to load
extension=iconv.so
before
extension=gd.so
in the dist.ini file. for iconv.so you need additionally libiconv.tcz of course.
-
hi
K i will make a quick check and i will let u know ...
-
@gumstech...thanks man it worked for me....once again thanks for sparing your precious time ;D cheers tiny core !!!!!