I have SUn E250 server running solaris 10. I have installed apache 2 + MySQL + PHP-5.1.4 following the guidelines on this website http://meljr.com/~meljr/AMPSolaris10.html
Excellent document for first time installation. Now, because I wanted to use Coppermine Photo Gallery, I realised I required GD or ImageMagick.
So I decided to go for GD2. I didn't realise that PHP already had GD2 installed as a extension. So I checked my installed director /usr/local/include/php/ext .... no GD and checked phpinfo.php no GD listed.
An since I had no idea how to use that extension file from /php-5.1.4/ext/gd folder, I decided to download GD and build it from source. As requirement of GD, i installed libraries for png, jpeg, zlib and many more and all were installed into /usr/local/lib (thats what I think as I saw all the lib files there).
Anyways then to combine gd with php, I decided to recompile php with the following options..... plz note I executed the ./configure command under the
/php-5.1.4 directory.
Then I did "gmake / make" gives me the same result
How do I get GD to work with my already compiled PHP ? Can someone please help me ? I have spent 2 complete days searching google and a lot of forums, but I've had just no luck.
I don't have any compulsion to use GD2 only, if someone knows how to get ImageMagick working, please do let me know, because I have tried to build it too using the install instructions for UNIX on their website, but got the following errors after I executed make (./configure for image magick was successful too)
snapshot of error from image magick installation
sorry for the long post. I have attached my error log file for both GD and imagemagick.
in your PHP build area first. Then rerun configure. Also enable --enable-iconv when you run configure, and make sure the "iconv" library exists on your system and be locatable by PHP.
Also, if you use any external GD installations instead of the bundled version, it may not necessarily work. Your mileage may vary. If everything fails, use the bundled version.
i tried what you suggested but got the same set of errors as last time.....
Code:
Undefined first referenced
symbol in file
libiconv_close ext/gd/libgd/.libs/gdkanji.o
libiconv_open ext/gd/libgd/.libs/gdkanji.o
libiconv ext/gd/libgd/.libs/gdkanji.o
ld: fatal: Symbol referencing errors. No output written to sapi/cli/php
collect2: ld returned 1 exit status
gmake: *** [sapi/cli/php] Error 1
What about compiling with the bundled version of GD? You don't need to do anything. As GD is bundled, you just need to have the full PHP sources there, pass the "--with-gd" option to configure (or additional ones. Run "configure --help" for a list) then it should pick it up. Always remember to "gmake distclean". Forgetting to do so frequently causes mysterious compilation errors. You may need to remove your installed version of GD. It may probably cause problems.
I noticed from your logs that the linking command (that is failing) in the auto-generated Makefile does not include "-liconv", but your GD object apparently requires iconv, so there is this error. This probably indicates it is not compatible with PHP.
Are you sure GD is really not loaded in PHP? Did you restart your Apache? It should be linked into the PHP binary/libphp5.so instead of being a PHP extension.
Its running right now as we speak....I wanted to know, is there any change I would need to make in PHP.ini file. Also, when I run phpinfo on my server, I do see iconv listed as enabled and a few other parameters within it as enabled.
If this fails again, what options do i have. Is it possible to completely uninstall PHP from my sun box ? if so, how to do an uninstall. Secondly, I'll download
php-5.1.4.tar.gz again and to compile it with all the extenions what commands would I need to do. Because when I compiled it on my own, it left out GD and many more, it only installed a few.
Hello,
I am facing an issue while starting the apache server after compiling php and curl.
Below are the versions i am using.
php-5.2.17
httpd-2.2.17
curl-7.16.0
CentOS5.5x64
Compiling above packages without curl working very fine but when trying to compile php with curl below error is... (1 Reply)
anyone tried it , under Solaris 10 using make (part of SUNWsprot) and gcc 4.6 compiler..
got an error complaining about the Makefile script syntax...
I don't think that's compatible at all... (2 Replies)
Hi,
I'm trying to compile php 5.3.3 on HP 11.23
We've installed all the pre-requirements packages.
Here is the configure:
./configure --prefix=/usr/local/php.5.3.3 --with-mysqli=mysqlnd --enable-libxml --with-libxml-dir=/usr/local/libxml2-2.7 --disable-dom
The configure has no problem... (0 Replies)
Hi all,
I am getting the following error While installing Samba 3.4.1 on Solaris 10.
#./autogen.sh
./autogen.sh : autoheader : not found
./autogen.sh : test : argument expected
Please help me as I am in a critical state of the project.
Warm regards,
Sathya (10 Replies)
Hello. I'm using SunStudio 12 Update 1. When compiling for x86, everything works fine. When compiling for SPARC, I get the following errors. I linked libCstd.so.1 explicitly, but I get the same errors. Would anyone be kind enough to step me through resolving this? Thank you very much.
**... (2 Replies)
Hello all
Currently I am trying to install net-snmp-5.5 on a V480 Solaris 8 machine however things are hardly going smooth. I'm running configure will the following options.
./configure --prefix=/usr/local --with-mib-modules="smux ucd-snmp/diskio ucd-snmp/lmSensors host"... (2 Replies)
How does one go aout compiling irssi locally on a fresh installation of Solaris 10,
Out put from ./configure m command
/download/1rss1-0.8.12
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking... (2 Replies)
I'm trying to compile PHP5. I've installed mysql5 successfully and apache1.3 is working great, but I get the message
below when I compile PHP5. I double checked if I have libxml2 installed and I do. I installed libxml2 binary from
sunfreeware. Please see below for details:
./configure... (5 Replies)
Hi,
I'm new to Unix. I'm trying to compile a shared library in Solaris running on x86. I get "void value not ignored as it ought to be" error when trying "make". But it compiles fine in Fedora. How can this happen? I think both are using the same type of compiler. What can I do to get around... (8 Replies)
hi, i'm compiling apache with php module after i finish compile mysql-4.0.0-alpha.
i do it as the follow steps after untar'ed them in the same directory,
1) cd apache_1.3.22
./configure
2) cd php-4.0.6
./configure --with-mysql=/usr/local/mysql \
--with-apache=../apache_1.3.22 \... (2 Replies)