having the same problem as well
tq
Same problem here.
$ opt-gif
/usr/local/bin/opt-gif: 20: tempname: not found
We had these issues you need to talk to your web host to make sure
opt-gif
opt-jpg
opt-png
are installed. If they will not play nice you could come host with us π
I’m having problems too. I always use this plugin but some days ago I got “Bad response from optimizer” for all images and I have the utils installed.
Anonymous User 14094376
(@anonymized-14094376)
Same thing when trying to run Bilk Optimizer. In my Apache Error Logs I have the Following:
usr/local/bin/opt-jpg: line 20: tempname: command not found
I do not have a /usr/local/bin/tempname (not sure if I am suppose to?).
OS: CentOS 6.5
EDIT FIXED:
To fix the issue I had to install littleutils 1.0.30.
The newest two version did throw an error saying stdalign.h didn’t exist during install (not sure if this caused it or not). I also installed a packaged named “file”.
`wget http://downloads.sourceforge.net/project/littleutils/littleutils-source/1.0.30/littleutils-1.0.30.tar.xz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Flittleutils%2Ffiles%2Flittleutils-source%2F1.0.30%2F&ts=1413362744&use_mirror=iweb
Anonymous User 14094376
(@anonymized-14094376)
yum install file
wget http://downloads.sourceforge.net/project/littleutils/littleutils-source/1.0.30/littleutils-1.0.30.tar.xz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Flittleutils%2Ffiles%2Flittleutils-source%2F1.0.30%2F&ts=1413362744&use_mirror=iweb
mv littleutils-1.0.30.tar.xz?r=http:%2F%2Fsourceforge.net%2Fprojects%2Flittleutils%2Ffiles%2Flittleutils-source%2F1.0.30%2F lu-1.0.30.tar.xz
I have a similar issue,
All the utilities are accessible via SSH and have been added to the PATH along with the “LD_LIBRARY_PATH”.
The plugin still detects the binaries as missing and if I override it, I get the “Bad response from optimizer” error as well.
Any ideas?
I faced with the same problem.
– Plugin was installed
– littleutils installed as well
– VPS server
and when I click on:
– Optimize now!
or
– Re-optimize
I see a message – “Bad response from optimizer“
what is can be wrong?
Hey iushakov,
I gave up since I was on a shared host and didn’t see much benefit of this over the EWWW Image Optimizer.
I encourage you to double check your PATH to make sure the littleutils binaries are available. It could also be a permissions thing, like the http server not having permission to access the binaries.
You might get some clues from your server’s log files.
Good luck!
Hey hyshka,
thanks for inputs, but problem still persist. I discussed this topic with my Hosting support, they have preformed all actions that you’ve discribed, but I still see the same error π
so need to know author comment what can be wrong here.
Thanks.
When you are having the “tempname: not found” error, it can be solved easily. You just need to understand what is going on.
Problem:
For some reason this problem exists when you do a fresh new install of the littlutils in your server.
After installation half of the number of files is missing. Including the utility “tempname” which is important for the working of opt-* files.
workaround:
Install the older version in your server. e.g: version 1.0.27
Then check and you will see that file “tempname” is now also there in /usr/local/bin/
Finally install the newest version 1.0.32 and it will work.
notes:
I use this littlutils for the WP Image Optimizer with sites running with PHP5.4 as FastCGI on Plesk machines.
Your host might not be happy with this tool when you crunch .PNG files as they take a lot of resouces.