vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - vLaTeX - Math parsing with LaTeX (https://vborg.vbsupport.ru/showthread.php?t=230589)

emath 12-12-2012 08:49 PM

on the errors from the log file i wrote it says : "unable to open image `143ebf4431f6923c64587a2965b56602_1355335161.ps': No such file or directory."

so it seems that maybe something in the script is wrong, the directory isnt right..

Pod 12-12-2012 09:06 PM

Quote:

Originally Posted by emath (Post 2390366)
on the errors from the log file i wrote it says : "unable to open image `143ebf4431f6923c64587a2965b56602_1355335161.ps': No such file or directory."

so it seems that maybe something in the script is wrong, the directory isnt right..

Every formula goes thought several formats: tex, dvi, ps and finally png. According to your first message, the process breaks at the dvi phase, so it's expected that the ps file doesn't get created.

To test further, please do the following. Edit vlatex/class_vlatex.php. Around line 411 (pretty at the end), change

PHP Code:

if (file_exists($f)) unlink($f); 

To

PHP Code:

// if (file_exists($f)) unlink($f); 

This effectively disables the cleanup of the temp directory. Please clean it by hand (something like rm vlatex/temp/*) so we can see the results of the test.

Then, log into your forum and try to add a formula to a post. The temp folder will fill up with some files, so we can know how many of them get created ok. Please, tell me the result of ls -l after that test, or delte also vlatex/temp/index.htm so I can take a look at the directory listing at http://www.emath.co.il/forums/vlatex/temp/ (you can recreate the file after the test)

emath 12-12-2012 09:26 PM

i commented the row u asked .

the ls -l gives now (while im in the temp dir) :

total 56
-rw-r--r-- 1 emath emath 49872 Dec 12 23:23 efa4c40fe23d50f46436522f01f442b1_1355350982.tex

Pod 12-12-2012 09:36 PM

Quote:

Originally Posted by emath (Post 2390373)
i commented the row u asked .

the ls -l gives now (while im in the temp dir) :

total 56
-rw-r--r-- 1 emath emath 49872 Dec 12 23:23 efa4c40fe23d50f46436522f01f442b1_1355350982.tex

Now, while in the temp dir, write the following:

Code:

(Path to LaTeX)  --interaction=nonstopmode efa4c40fe23d50f46436522f01f442b1_1355350982.tex
Where Path to LaTeX is the path to latex as entered in the admincp. The default is /usr/bin/latex, so if you have the default value your line would be

Code:

/usr/bin/latex  --interaction=nonstopmode efa4c40fe23d50f46436522f01f442b1_1355350982.tex
This is the command the mod is issuing (Assuming that you didn't delete the file generated by the previous test; if you did, please create a new one).

See if any error happens, and see if more files are generated in the directory (i.e, check ls -l again).



If the previous command failed, try the same line but without the full path (just latex instead of /usr/bin). This should work, since we tested a different thing a while ago.

emath 12-12-2012 09:39 PM

ok, the command succeeded. (with the full path)

ls -l gives :

Quote:

total 320
-rw-r--r-- 1 emath emath 54659 Dec 12 23:29 218f45bd0e29f218b0dc1857255890a0_1355351345.tex
-rw-r--r-- 1 emath emath 54659 Dec 12 23:29 5d890bc62b4786e4e033f3109d6f514f_1355351364.tex
-rw-r--r-- 1 emath emath 54659 Dec 12 23:29 bef8c61085cc0b691603940a31f6e3e8_1355351327.tex
-rw-rw-r-- 1 admin admin 8 Dec 12 23:36 efa4c40fe23d50f46436522f01f442b1_1355350982.aux
-rw-rw-r-- 1 admin admin 6 Dec 12 23:36 efa4c40fe23d50f46436522f01f442b1_1355350982.depth
-rw-rw-r-- 1 admin admin 212 Dec 12 23:36 efa4c40fe23d50f46436522f01f442b1_1355350982.dvi
-rw-rw-r-- 1 admin admin 5125 Dec 12 23:36 efa4c40fe23d50f46436522f01f442b1_1355350982.log
-rw-r--r-- 1 emath emath 54659 Dec 12 23:23 efa4c40fe23d50f46436522f01f442b1_1355350982.tex
-rw-r--r-- 1 emath emath 54659 Dec 12 23:25 fd3be24dfc7f5c66c09e58c2485731a1_1355351109.tex
the only error that might be is : /usr/bin/latex: /usr/local/lib/libpng12.so.0: no version information available (required by /usr/bin/latex)

Pod 12-12-2012 10:00 PM

Quote:

Originally Posted by emath (Post 2390375)
ok, the command succeeded.

ls -l gives :



the only error that might be is : /usr/bin/latex: /usr/local/lib/libpng12.so.0: no version information available (required by /usr/bin/latex)

That's very weird. The libpng error shouldn't matter at this point since the dvi file is generated; but it isn't when the same command is issued by the webserver.

It might be worth trying to install libpng just to see if that makes any difference; If you installed latex using a package manager (apt-get, yum, yast or whatever) then the dependence should have been installed, check your linux distribution on details why it wasn't.

Anyway, I don't think that's the problem, so let's try something else. I'm going to prepare a debug version of class_vlatex.php to gather more information and I'll get back to you when I have it.

That is unless... and I know this is a delicate question, but would you consider giving me temporary and limited ssh access to the restricted vlatex directory so I could perform tests by myself much more quickly?

I'll get back to you when I have the debug class_vlatex.php.

Pod 12-12-2012 11:41 PM

Quote:

Originally Posted by Pod (Post 2390380)
That's very weird. The libpng error shouldn't matter at this point since the dvi file is generated; but it isn't when the same command is issued by the webserver.

It might be worth trying to install libpng just to see if that makes any difference; If you installed latex using a package manager (apt-get, yum, yast or whatever) then the dependence should have been installed, check your linux distribution on details why it wasn't.

Anyway, I don't think that's the problem, so let's try something else. I'm going to prepare a debug version of class_vlatex.php to gather more information and I'll get back to you when I have it.

That is unless... and I know this is a delicate question, but would you consider giving me temporary and limited ssh access to the restricted vlatex directory so I could perform tests by myself much more quickly?

I'll get back to you when I have the debug class_vlatex.php.


For the record, if it helps somebody else, it was a LaTeX install issue, latex.fmt was missing. What finally solved the problem was to run:

Code:

fmtutil-sys --all

emath 12-13-2012 01:53 PM

Quote:

Originally Posted by Pod (Post 2390385)
For the record, if it helps somebody else, it was a LaTeX install issue, latex.fmt was missing. What finally solved the problem was to run:

Code:

fmtutil-sys --all

ive done this, and find out that the latex.fmt file is in the: /.texmf-var/web2c/

and the mod requires it to be at : /.texmf/web2c/

so ive just copied the file to that directory ( using cp command ) .

thanks to pod for the help.

one more little thing : why does the \\ command for new line doesnt work?

Pod 12-13-2012 02:10 PM

Quote:

Originally Posted by emath (Post 2390484)
and the mod requires it to be at : /.texmf/web2c/

Not specifically this mod, but your latex installation requires it to be there.

Quote:

Originally Posted by emath (Post 2390484)
one more little thing : why does the \\ command for new line doesnt work?

LaTeX doesn't allow new lines in displayed equations. You can use one of amstex packages, for instance

[tex]\begin{gathered}
line 1 \\
line 2
\end{gathered}[/tex]

emath 12-13-2012 03:54 PM

in mimetex it worked with no problem, and we wrote for years like this .
is there anyway to enable this command ?


All times are GMT. The time now is 05:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01207 seconds
  • Memory Usage 1,761KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete