gd2 on freenas

Hi,

I have just installed freenas 0.69RC2 on my server.
It contains php but it doesn't seem to have GD2 installed.

Since I'm new in using freenas (freebsd) I wonder if anyone here could help me on how I should do to install GD2 on my server?

Thanks for all the help I can get!

Br,
Andreas

Sorry, I never used freebsd.

Sorry, I never used freebsd. You will have to google a little bit about that. In worst case you will have to install some package and recompile php with some options which enable GD2 library.

With linux like debian or ubunut it is much easier than this, but who knows may be it is easy with freebsd too.

Patrik

Have PHPAlbum running on FreeBSD

Does FreeNAS include complier?
I setup my PHPAlbum on FreeBSD by compiling everything from source you can try also, but you will need some experience compiling source. You will need:
gd
ljepeg-7
php

Search internet for those programs.

To compile it is usually

cd tosource
./configure
make
make install

For ljpeg (lib-jpeg) you need ./configure --prefix=/usr/lib/ljpeg7

For gd use ./configure --enable-jpeg=/usr/lib/ljpeg7

For php compile use ./configure --enable-jpeg=/usr/lib/ljpeg7 --enable-gd plus other php options

FreeBSD has package manager just like Debian but not sure is it included in FreeNAS also how compatible is FreeNAS with official FreeBSD

this is how to use it:

pkg_add -r gd

This will install both GD and lib-jpeg packages, but you still need compile php to include gd and ljpeg. It didn't work for me, couldn't find lib-jpeg.

Hope this helps.

Have PHPAlbum running on FreeBSD

Does FreeNAS include complier?
I setup my PHPAlbum on FreeBSD by compiling everything from source you can try also, but you will need some experience compiling source. You will need:
gd
ljepeg-7
php

Search internet for those programs.

To compile it is usually

cd tosource
./configure
make
make install

For ljpeg (lib-jpeg) you need ./configure --prefix=/usr/lib/ljpeg7

For gd use ./configure --enable-jpeg=/usr/lib/ljpeg7

For php compile use ./configure --enable-jpeg=/usr/lib/ljpeg7 --enable-gd plus other php options

FreeBSD has package manager just like Debian but not sure is it included in FreeNAS also how compatible is FreeNAS with official FreeBSD

this is how to use it:

pkg_add -r gd

This will install both GD and lib-jpeg packages, but you still need compile php to include gd and ljpeg. It didn't work for me, couldn't find lib-jpeg.

Hope this helps.

PHPAlbum run on FreeNAS

After Full install FreeNAS and setup PHPAlbum, add pack on SSH or console. add GD library support on PHP

pkg_add -r gd
pkg_add -r php5
pkg_add -r php5-extensions
pkg_add -r php5-xmlrpc
pkg_add -r php5-gettext
pkg_add -r php5-mcrypt
pkg_add -r php5-mbstring
pkg_add -r php5-gd

pkg_add -r xmlstarlet

The installation you will not be able to access FreeNAS webGUI interface because of a problem, type the following commands

mv /usr/local/bin/php /usr/local/bin/php-cli
cp /usr/local/bin/php-cgi /usr/local/bin/php

Restart start will be work fine.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.


style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-8698264690166658"
data-ad-slot="4417389723">