Zend Optimizer did't work

existenz

Verified User
Joined
Jul 18, 2003
Messages
607
Location
/dev/null
While trying to get Zend to work this is the error:

--------------------------------------------------
/usr/libexec/elf/ld: cannot find -lltdl
*** Error code 1

Stop in /usr/local/directadmin/customapache/php-4.3.4.
--------------------------------------------------

If you try to just build zend you will get this:

--------------------------------------------------
ELF binary type "0" not known.
Abort trap
--------------------------------------------------

This is a error telling you that the linux binary is not working so I...

Made sure I had the linux compatiblity binary installed
#pkg_info | grep linux
linux_base-7.1_5 The base set of packages needed in Linux mode
#pico /etc/rc.conf
Added the following line
linux_enable="YES"
Loaded the binary
#linux
Made sure it was working
#kldstat
Id Refs Address Size Name
1 2 0xc0100000 43d388 kernel
2 1 0xc1c72000 15000 linux.ko

At this point I could run ./build zend and install Zend but it does not work properly. I then realized that I was tring to install Zend for linux on a FreeBSD box so

I downloaded ZendOptimizer-2.1.0b-FreeBSD4.0-i386.tar
Untar file
#tar -xz ZendOptimizer-2.1.0b-FreeBSD4.0-i386.tar
#cd /ZendOptimizer-2.1.0b-FreeBSD4.0-i386
Ran the installer
#./install.sh
Answered all the questions, reloaded Apache and Zend was installed

I included the Linux binary details because you may want to have this running for anything that DA or other linux apps you might want to run in the future. I don't see the build in FreeBSD grabbing the correct file I think we just need a if, else statement just like the frontpage stuff.

Hopefully that helps someone :D
 
Hello,

Ok thanks for that note. I'll get the bsd version of the binary included with the build system :)

John
 
I know this is an old post, but did this ever get resolved? Should I be providing a filename variable somehow? I get the following on FreeBSD 4.10:

luca# ./build zend
Downloading .tar.gz...
fetch: http://files.directadmin.com/services/customapache/.tar.gz: Not Found
Fileserver is down, using the backup file server..
fetch: http://www.directadmin.com/services/customapache/.tar.gz: Not Found
tar (child): .tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors

Location of php.ini:
/usr/local/lib
Press return to continue...

./build: ./install.sh: not found
luca#
 
LyricTung said:
Should I be providing a filename variable somehow?
No, I've never had to provide DA a filename. There's definitely something fishy going on there. Smells like a bug to me :)
 
Hello,

That's because I *just* update the build script for 4.10 :) ... it only came out a few days ago! ;)

Do a "./build update" and try again.

John
 
Yeah, actually I found the the problem about 1.5 hours ago and edited the build script for 4.10 myself.

Thanks!
 
Back
Top