Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Ok, here is mine, try it and se if it works
http://www.stefanolth.org/common/libmcrypt.tar.gz
cd /ffp/lib wget http://www.stefanolth.org/common/libmcrypt.tar.gz tar -zxvf libmcrypt.tar.gz rm libmcrypt.tar.gz
/Stefan
Offline
Hi,
thanks but i have already this file.
The missing one is in "/ffp/lib/php/extensions/no-debug-non-zts-20060613" ; it's the file mcrypt.a.
Because all the files in this folder have *.so AND *.a
Offline
Ok, give me some time, I need to rebuild php to get it ?
how big is your mcrypt.so, is it around 91kb ?
Offline
mcrypt.so is your file : around 3,98kb !
Offline
Hi
Ok, I understand, you might got the wrong one, try this
http://www.stefanolth.org/common/mcrypt.so
Offline
Thanks for this file, the size is OK.
For the other file, "mcrypt.a", you have it ?
Offline
I am not sure how to get it at the moment, when building it in php it is created at make but removed at make install, and install only install the mcrypt.so so right now I am not sure why .a is not installed.
Did you test the new .so file, you get the same error message (you killed php processes or rebooted as well) ?
Offline
I'll test this file tonight.
thanks.
i'll keep you in the loop.
Offline
I guess the mcrypt.so it will not work with the php that is installed from nas-tweak tutorial.
From the output of the tutorial exercise under Testing PHP, the phpinfo() output is as below and it contains the option for all other dynamically loaded library found in /ffp/lib/php/extensions/no-debug-non-zts-20060613 but no mcrypt option. So i guess it is not turned on at compiled time and thus it will not work.
Configure Command '/ffp-src/work/php-5.2.17/php-5.2.17/configure' '--with-config-file-path=/ffp/etc' '--enable-shared=yes' '--enable-static=no' '--with-gnu-ld' '--with-pic' '--enable-fastcgi' '--enable-force-cgi-redirect' '--enable-spl' '--enable-hash' '--enable-session' '--with-pcre-regex' '--enable-posix' '--enable-sockets' '--enable-sysvsem' '--enable-calendar=shared' '--enable-ctype=shared' '--enable-libxml' '--enable-simplexml' '--enable-soap' '--with-libxml-dir=/ffp' '--enable-mbstring=shared' '--enable-mbregex' '--enable-zip' '--enable-pdo=shared' '--with-sqlite=shared' '--enable-sqlite-utf8' '--with-pdo-sqlite=shared' '--with-mysql=shared,/ffp' '--with-pdo-mysql=shared,/ffp' '--with-mysql-sock=/ffp/var/run/mysql' '--enable-tokenizer=shared' '--with-zlib=shared' '--with-zlib-dir=/ffp' '--with-openssl=/ffp' '--enable-pcntl' '--enable-sigchild' '--enable-ftp=shared' '--with-gd=shared' '--with-curl=/ffp' '--with-curlwrappers' '--with-jpeg-dir=/ffp' '--with-png-dir=/ffp' '--with-iconv=/ffp'
Stefan, would you be able to post the phpinfo() output from your setup ?
The code is as follow
<H1>This is normal HTML</H1> But the <U>following table</U> is generated by PHP: <?php phpinfo(); ?>
Offline
kayaroti wrote:
Stefan, would you be able to post the phpinfo() output from your setup ?
Sure my php_info is at http://mikla.dyndns.org:8080/
Would it be better idea if I give you my build script to build php (and a whole bunch other soft wares and libraries) ?
It is two shell script, one download the tar balls and the other do the compiling,
/Stefan
Offline
Hi,
doesn't work with the new mcrypt.so....
maybe this link can help you :
http://fr2.php.net/manual/en/mcrypt.installation.php
Last edited by noxunas (2011-04-05 22:33:26)
Offline
Thanks for the link but that is how I building the mcrypt.so for you, so I am not sure why it does not work
for you, I am suspecting that it is related to some other libraries such as rc (that is needed to build php and mcrypt)
Do you want to build php yourself ?
I can provide you with the needed scripts to make it a little easier for you.
Offline
Yes, i'm trying to build php...
compilation in progress..
=> error : after a while : " fatal error: error writing to /tmp/ccyYNVlg.s: No space left on device"
how can i fix this problem with /tmp ?
thanks
Last edited by noxunas (2011-04-06 01:34:06)
Offline
stefanth wrote:
kayaroti wrote:
Stefan, would you be able to post the phpinfo() output from your setup ?
Sure my php_info is at http://mikla.dyndns.org:8080/
Would it be better idea if I give you my build script to build php (and a whole bunch other soft wares and libraries) ?
It is two shell script, one download the tar balls and the other do the compiling,
/Stefan
I guess you have compiled your mcrypt statically in your php.
I also guess that the version of PHP from Uli (nas-tweak) that noxunas and myself had installed do not have mcrypt compiled statically or even the dynamic option turn on. Thus even with the dynamic library mcrypt.so in the right place, it will not work.
Btw, *.a like mcrypt.a is static library and *.so like mcrypt.so is a dynamic library.
I am pondering if I should compile my own like you do or perhaps try the chroot debian Squeeze and install from there.
Last edited by kayaroti (2011-04-06 07:19:29)
Offline
noxunas wrote:
Yes, i'm trying to build php...
compilation in progress..
=> error : after a while : " fatal error: error writing to /tmp/ccyYNVlg.s: No space left on device"
how can i fix this problem with /tmp ?
thanks
You fix it by using a tmp directory on your harddisk instead of using the ramdisk
Do this one time
mkdir -p /ffp/tmp
Do the following before starting compiling (after everytime you log on your NAS the first time)
export LD_LIBRARY_PATH=/ffp/lib export TMPDIR=/ffp/tmp
Which version are you compiling ?
5.3.5 will not work, it have misspelled macros and missing atoms, I would recomend 5.2.17
Do at least the following (to get mcrypt support)
mkdir /ffp/install cd /ffp/install wget http://sourceforge.net/projects/re2c/files/re2c/0.13.5/re2c-0.13.5.tar.gz wget http://sourceforge.net/projects/mcrypt/files/MCrypt/2.6.8/mcrypt-2.6.8.tar.gz wget http://sourceforge.net/projects/mhash/files/mhash/0.9.9.9/mhash-0.9.9.9.tar.gz wget http://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz wget http://www.sqlite.org/cvstrac/getfile/sqlite/tool/lemon.c wget http://se.php.net/distributions/php-5.2.17.tar.bz2 tar -zxvf re2c-0.13.5.tar.gz tar -zxvf mcrypt-2.6.8.tar.gz tar -zxvf mhash-0.9.9.9.tar.gz tar -zxvf libmcrypt-2.5.8.tar.gz tar -jxvf php-5.2.17.tar.bz2 rm -rf lemon mkdir -p lemon cp lemon.c lemon
The following needs to be in this order becosue the libraries depend on each other
cd /ffp/install/re2c-0.13.5 ./configure --prefix=/ffp --libdir=/ffp/lib --includedir=/ffp/include make make install ldconfig cd /ffp/install/mhash-0.9.9.9 ./configure --prefix=/ffp --libdir=/ffp/lib --includedir=/ffp/include make make install ldconfig cd /ffp/install/libmcrypt-2.5.8 ./configure --prefix=/ffp --libdir=/ffp/lib --includedir=/ffp/include --enable-dynamic-loading --enable-static-link make make install ldconfig cd /ffp/install/mcrypt-2.6.8 ./configure --prefix=/ffp --libdir=/ffp/lib --includedir=/ffp/include --with-libmcrypt-prefix=/ffp cd /ffp/install/lemon gcc -o lemon lemon.c mv lemon /ffp/bin cd /ffp/install/php-5.2.17/ext/mcrypt phpize aclocal ./configure --prefix=/ffp --libdir=/ffp/lib --includedir=/ffp/include --disable-posix-threads --enable-dynamic-loading --enable-shared --with-mcrypt=/ffp --with-php-config=/ffp/bin/php-config make make install ldconfig
/Stefan
Last edited by stefanth (2011-04-06 11:24:53)
Offline
kayaroti wrote:
stefanth wrote:
kayaroti wrote:
Stefan, would you be able to post the phpinfo() output from your setup ?
Sure my php_info is at http://mikla.dyndns.org:8080/
Would it be better idea if I give you my build script to build php (and a whole bunch other soft wares and libraries) ?
It is two shell script, one download the tar balls and the other do the compiling,
/StefanI guess you have compiled your mcrypt statically in your php.
Yes, I mentioned it a couple times earlier in the threads, but once upon a time I built the mcrypt dynamically
I also guess that the version of PHP from Uli (nas-tweak) that noxunas and myself had installed do not have mcrypt compiled
No it do not, that is why I complied it myself, needed it for ajaxplorer
statically or even the dynamic option turn on. Thus even with the dynamic library mcrypt.so in the right place, it will not work.
Btw, *.a like mcrypt.a is static library and *.so like mcrypt.so is a dynamic library.
Yes
I am pondering if I should compile my own like you do
Yes, you should that, it is much more painless, if you want you can do as above explained or I can give you my download/compile scripts,
it will update some 50-80 different programs and libraries, you will get a full blown php and other things like latest versions and fully featured versions of ffmpeg all codecs included, lighthhttd, ajaxplorer, mysql, mediatomb perl etc. etc.....)
To compile everything it will take some 12-18 hours to finnish on the NAS but you can remove all the codecs and ffmpeg stuff and it will go much faster.
or perhaps try the chroot debian Squeeze and install from there.
That is very close what I wanted once upon a time last year when I started to updated the fonz installation
however I want a "clean debian" installation like this one
http://www.cyrius.com/debian/orion/d-li … tml
I talked to Martin about doing the same work to the DNS-320 but I suspect that he wont do it for free,
however he send me this link
http://hezmatt.org/~mpalmer/blog/genera … s_323.html
This is really what I want, a clean debian installation that "roots" /bin /lib... directly to the harddisk at start up etc ...
then I can use ipk-get and can throw away my 3 months work
/Stefan
Last edited by stefanth (2011-04-06 10:58:19)
Offline
Stefan, thanks for sharing.
Installing Debian to replace the firmware is real serious work and definitely way beyond my noob linux skill level.
Offline
@kayaroti
Yes for me to, well it was until a while ago.
I noticed on page http://dns323.kood.org/dns-320, at the bottom that dlink have shared binaries and source code in order
to build a rom image (Building a Custom Firwmware ("ROM")).
The only thing I need is to figure out how to change it so it install the root on Volume_1 instead of in the ramdisk and
then every thing is good and well.
If so, then there is no size limits for /usr /lib /include etc. so it will be possible to install anything, either manually or via apt-get.
And also, it is using glibc and not uClibc.
Meanwhile, I willgive you my scripts which patches up Dlink/fonz plug with latest releases and builds and a number
of softwares including softwares that originally did not exists.
You can uncomment what you want in order to shorten the compilation time for those stuff that you do not want.
I am not sure if I can do it now (have problems with my vpn tunnel) but will look into it tonight.
Those I give you I will configure so most of the codecs and ffmpegs are comment out t shortened it down but it will
compile up
a lot of "help stuff" (such as curl, wget, gzip, jpeg, tiff, fonts etc. ) ,
subversion-1.6.15
openssh-5.8p1,
mediatomb-0.12.1,
xmlstarlet-1.0.4,
perl-5.12.3,
lighttpd-1.4.28,
ajaxplorer-core-3.2.1,
php-5.2.17
mysql-5.5.9
Live well
/Stefan
Last edited by stefanth (2011-04-06 15:37:50)
Offline
Hi,
I have an error during the execution of ./configure for mcrypt :
"error: no acceptable grep could be found in /ffp/sbin:/usr/sbin:/sbin:/ffp/bin:/usr/bin:/bin:/usr/xpg4/bin"...
a piece of help ?
thanks
Offline
Hi
@noxunas
Yes, you need a newer version of grep do this before mcrypt
cd /ffp/install wget http://ftp.gnu.org/gnu/grep/grep-2.7.tar.gz tar -zxvf grep-2.7.tar.gz cd grep-2.7 ./configure --prefix=/ffp --libdir=/ffp/lib --includedir=/ffp/include make make install ldconfig
@kayaroti
I have not got the time yet to send you the stuff, I hope I get more time tomorrow
PS
There might be more dependences, but we will work them out one by one
DS
Offline
Unable to compile new grep....
error with libiconv !! but i have installed these libs...
Offline
stefanth wrote:
Hi
@noxunas
Yes, you need a newer version of grep do this before mcryptCode:
cd /ffp/install wget http://ftp.gnu.org/gnu/grep/grep-2.7.tar.gz tar -zxvf grep-2.7.tar.gz cd grep-2.7 ./configure --prefix=/ffp --libdir=/ffp/lib --includedir=/ffp/include make make install ldconfig@kayaroti
I have not got the time yet to send you the stuff, I hope I get more time tomorrow
PS
There might be more dependences, but we will work them out one by one
DS
Thanks for the generous offer.
As of last night, I had just successfully installed the chroot debian squeeze, php5, lighttpd and ajaxplorer3.2.1.
The ajaxplorer publiclet is finally working with mcrypt like in the demo.
It took me about 4+ hours to install and troubleshoot.
The downside is that once the provided fun_plug start up the debian, you lost access to the /mnt/HD_a4 (ram disk?). Reason is that debian runs its own ssh server and once you ssh in, you are sandbox by to the squeeze folder and the volume1 folder. Also as I am also running lighttpd, it does not play nice with the existing lighttpd of the NAS.
I have initially installed apache2 instead of lighttpd but it seems like an overkill and may take up more resources.
These problem can probably be ironed out if I dig hard enough to understand the fun_plug.debian provided with the squeeze package.
Also, now I have to find out how to stop unwanted services startup by debian during start up.
Last edited by kayaroti (2011-04-07 05:12:37)
Offline
noxunas wrote:
Unable to compile new grep....
error with libiconv !! but i have installed these libs...
You most likely need newer version as well of libiconv in order to compile
cd /ffp/install wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz cd libiconv-1.13.1 ./configure --prefix=/ffp --libdir=/ffp/lib --includedir=/ffp/include --enable-extra-encodings make make install ldconfig
Noxunas, these dependencies are normal.
In a "normal GNU/Linux system" you use stuff like api-get
that solves up dependencies and install them automatically.
However our NAS does not have a these utilities and the repository for fonz plug and uri's have not
been updated for a long time.
The basic problem is that when fonz/ uri compiled up php they had to take a number of strategic decision of what to include and what to exclude, unfortunately for us ajaxplorer users one decision was to exclude mcrypt and therefore we have to do everything from "scratch" as you are doing now.
PS
That is why I want a "real" Debian rom image boot file that install a "clean" GNU/Linux so apt-get works etc. The Squeeze version that Dlink have produced might be the solution but it feels like cake on a cake and I am still a little sceptical
DS
/Stefan
Last edited by stefanth (2011-04-07 09:55:26)
Offline
kayaroti wrote:
Thanks for the generous offer.
As of last night, I had just successfully installed the chroot debian squeeze, php5, lighttpd and ajaxplorer3.2.1.
The ajaxplorer publiclet is finally working with mcrypt like in the demo.
Ok, you tried the squeeze out, interesting, then I will not put up my scripts.
I would appreciate if you could in a couple days give some sort of verdict about it.
Think it does not matter to loose the ramdisk.
I assume the squeeze mounts /usr/ /lib on the harddisk instead.
/Stefan
Last edited by stefanth (2011-04-07 09:45:14)
Offline
Hi,
what about mcrypt? Did you installed it ? I had red and followed these posts but no success. Maybe somebody can share real working checklist how to install mcrypt (for Ajaxplorer). I'll appreciate any help.
Offline