<br />
<b>Warning</b>:  Undefined array key "HTTP_REFERER" in <b>/home/sixthfor/public_html/steve/wordpress/wp-content/plugins/search-hilite.php</b> on line <b>88</b><br />
<br />
<b>Warning</b>:  Undefined array key "HTTP_REFERER" in <b>/home/sixthfor/public_html/steve/wordpress/wp-content/plugins/search-hilite.php</b> on line <b>88</b><br />
<br />
<b>Warning</b>:  Undefined array key "HTTP_REFERER" in <b>/home/sixthfor/public_html/steve/wordpress/wp-content/plugins/search-hilite.php</b> on line <b>88</b><br />
{"id":34,"date":"2005-01-14T15:32:32","date_gmt":"2005-01-14T14:32:32","guid":{"rendered":"http:\/\/sixthform.info\/steve\/wordpress\/?p=34"},"modified":"2007-11-06T13:40:57","modified_gmt":"2007-11-06T13:40:57","slug":"path-problems-in-linux","status":"publish","type":"post","link":"https:\/\/sixthform.info\/steve\/wordpress\/?p=34","title":{"rendered":"Path Problems in Linux"},"content":{"rendered":"<p>If you can&#8217;t get LatexRender to work then comment out the 6 unlink lines in class.latexrender.php with \/\/ so that they look like this:<br \/>\n<code>\/\/        unlink($this->_tmp_dir.\"\/\".$this->_tmp_filename.\".tex\");<br \/>\n\/\/        unlink($this->_tmp_dir.\"\/\".$this->_tmp_filename.\".aux\");<br \/>\n\/\/        unlink($this->_tmp_dir.\"\/\".$this->_tmp_filename.\".log\");<br \/>\n\/\/        unlink($this->_tmp_dir.\"\/\".$this->_tmp_filename.\".dvi\");<br \/>\n\/\/        unlink($this->_tmp_dir.\"\/\".$this->_tmp_filename.\".ps\");<br \/>\n\/\/        unlink($this->_tmp_dir.\"\/\".$this->_tmp_filename.\".\".$this->_image_format);<\/code><br \/>\nThen look in the <code>\/tmp<\/code> folder you have created and see what files have been created. If there&#8217;s a .ps file but no .gif or .png file then it may be because ImageMagick can&#8217;t find Ghostscript as detailed in <a href=\"http:\/\/www.math.ua.ac.be\/~lebruyn\/nebblog\/latexrenderosx.html\"  target=\"_blank\">Latexrender for WordPress under Mac OS X<\/a>.<\/p>\n<p>This is because in Linux, Imagemagick expects to find the gs file (Ghostscript&#8217;s binary) in <code>\/usr\/bin<\/code>. In fact, it may be in <code>\/usr\/local\/bin<\/code> or somewhere else. You can either<br \/>\n1. reinstall Ghostscript into <code>\/usr\/bin<\/code><br \/>\n<em>or<\/em><br \/>\n2. change the path in Imagemagick&#8217;s file to tell it where to look. The file you want is <strong>delegates.mgk<\/strong> and might be found in <code>\/usr\/share\/ImageMagick<\/code>, though this can vary. In this text file just alter <code>\/usr\/bin\/gs<\/code>  to the correct path &#8211; there may be 8 of these to change.<br \/>\n<em>or<\/em><br \/>\n3. This is probably the simplest method. Make a symbolic link from <code>\/usr\/bin\/gs<\/code> to <code>\/usr\/local\/bin\/gs<\/code> or wherever gs resides.  <a target=\"_blank\" href=\"http:\/\/help.hardhathosting.com\/question.php\/95\" >How do I create a symbolic link?<\/a><br \/>\n<em>or<\/em><br \/>\n4. See Marcin Gomulka&#8217;s comment below. This is great if you don&#8217;t have access to the server<\/p>\n<p>Please let me know if this works for your installation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you can&#8217;t get LatexRender to work then comment out the 6 unlink lines in class.latexrender.php with \/\/ so that they look like this: \/\/ unlink($this->_tmp_dir.&#8221;\/&#8221;.$this->_tmp_filename.&#8221;.tex&#8221;); \/\/ unlink($this->_tmp_dir.&#8221;\/&#8221;.$this->_tmp_filename.&#8221;.aux&#8221;); \/\/ unlink($this->_tmp_dir.&#8221;\/&#8221;.$this->_tmp_filename.&#8221;.log&#8221;); \/\/ unlink($this->_tmp_dir.&#8221;\/&#8221;.$this->_tmp_filename.&#8221;.dvi&#8221;); \/\/ unlink($this->_tmp_dir.&#8221;\/&#8221;.$this->_tmp_filename.&#8221;.ps&#8221;); \/\/ unlink($this->_tmp_dir.&#8221;\/&#8221;.$this->_tmp_filename.&#8221;.&#8221;.$this->_image_format); Then look in the \/tmp folder you have created and see what files have been created. If there&#8217;s a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-34","post","type-post","status-publish","format-standard","hentry","category-latexrender"],"_links":{"self":[{"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=34"}],"version-history":[{"count":0,"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/34\/revisions"}],"wp:attachment":[{"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}