Note that there are some explanatory texts on larger screens.

plurals
  1. POIs it possible to control which libraries apache uses?
    text
    copied!<p>Okay, so I had an <a href="https://stackoverflow.com/questions/2110588/getting-invalid-image-error-in-django-but-pil-is-installed-and-passes-all-tests">earlier problem with PIL</a> that is still unresolved. Someone else had this problem and had success by <a href="http://salamand.wordpress.com/2009/08/25/problem-uploading-image-file-to-satchmo/" rel="nofollow noreferrer">removing the old JPEG library</a>. I can't really do that on my machine, however, as it's RHEL and so many things are dependent on libjpeg and libjpeg-devel (when I tried yum remove libjpeg just to see, there were a total of 252 packages that would have been removed!) </p> <p>I have jpeg-8 installed in /usr/local/lib. It's correctly being used by python, but <em>not</em> by apache. Here's a list from lsof:</p> <pre><code>COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME httpd xxxxx root mem REG 253,3 xxxxx0 xxxxx34 /usr/lib64/libjpeg.so.62.0.0 python xxxxx jordan DEL REG 253,3 xxxxx63 /usr/local/lib/libjpeg.so.8.0.0 httpd xxxxx apache mem REG 253,3 xxxxx0 xxxxx34 /usr/lib64/libjpeg.so.62.0.0 httpd xxxxx apache mem REG 253,3 xxxxx0 xxxxx34 /usr/lib64/libjpeg.so.62.0.0 httpd xxxxx apache mem REG 253,3 xxxxx0 xxxxx34 /usr/lib64/libjpeg.so.62.0.0 httpd xxxxx apache mem REG 253,3 xxxxx0 xxxxx34 /usr/lib64/libjpeg.so.62.0.0 httpd xxxxx apache mem REG 253,3 xxxxx0 xxxxx34 /usr/lib64/libjpeg.so.62.0.0 httpd xxxxx apache mem REG 253,3 xxxxx0 xxxxx34 /usr/lib64/libjpeg.so.62.0.0 httpd xxxxx apache mem REG 253,3 xxxxx0 xxxxx34 /usr/lib64/libjpeg.so.62.0.0 httpd xxxxx apache mem REG 253,3 xxxxx0 xxxxx34 /usr/lib64/libjpeg.so.62.0.0 </code></pre> <p>So, here's what I'm wondering. Given that I can't uninstall libjpeg-6b, is there any way I can <em>force</em> apache to use libjpeg-8 instead?</p> <p>Okay, so a recent run of <code>lsof</code> shows that apache is now loading libjpeg.so.8.0.0 <strong>also</strong> but still running into errors, which suggests that it is still using the 62 version. Is there some way to give the 8 version precedence instead?</p> <p><strong>UPDATE #1</strong></p> <p>Running <code>ldd</code> against all of the modules in lib64/modules came up with no reference to libjpeg. Running <code>ldd</code> on PIL's _imaging.so file showed that it is using the new version of libjpeg. I'm pretty sure there is only one version of PIL on my system -- I've done a pretty thorough search.</p> <p>Does anyone out there know which programs or modules tied to httpd or python are likely to load libjpeg? I know that <em>something</em> is loading it via apache since it is showing up in <code>lsof</code>.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload