SQL-Ledger Homepage

SQL-Ledger User Forum

Forum index page

Log in | Register

Back to index page
Thread view  Board view
JayArr(R)

Mission BC Canada,
07.12.2014, 12:46
 

Upgrade problems (General)

Hello All

Newly updated server and now I can't print!

When I try to print an invoice (to either a printer or the screen) I get:

Error!

14179728705996_invoice_7298 : No such file or directory

I'm sure it's a latex thing but I need some help.

I have texlive installed, there are links in /usr/local/bin for latex and pdflatex that link over to a binary called pdftex.

If I type latex on the command line it starts.

I have $latex=1 in sql-ledger.conf
I have tried it with and without $dvipdf=1

Is it a problem that FreeBSD installs tex in /usr/local/bin instead of /bin?

I tried putting a soft link called latex in /bin that points to /usr/local/bin/latex but no change.

Help please.

Jeff

JayArr(R)

Mission BC Canada,
07.12.2014, 14:29

@ JayArr
 

Upgrade problems

Hi All

I solved this problem,

ln -s /usr/local/bin/pdflatex /bin/pdflatex

I'm guessing that sql-ledger is looking at /bin for pdflatex and the fact that FreeBSD installs it in /usr/local/bin is the problem.

It should be noted that I can type pdflatex from my command line and it will run so the environment variables on the server are including /usr/local/bin, sql-ledger is either using a direct location of /bin/pdflatex or it's not picking up the environment variable to include /usr/local/bin.

I hope this post will help the next FreeBSD builder.

:-)

Jeff


Hello All

Newly updated server and now I can't print!

When I try to print an invoice (to either a printer or the screen) I get:

Error!

14179728705996_invoice_7298 : No such file or directory

I'm sure it's a latex thing but I need some help.

I have texlive installed, there are links in /usr/local/bin for latex and
pdflatex that link over to a binary called pdftex.

If I type latex on the command line it starts.

I have $latex=1 in sql-ledger.conf
I have tried it with and without $dvipdf=1

Is it a problem that FreeBSD installs tex in /usr/local/bin instead of
/bin?

I tried putting a soft link called latex in /bin that points to
/usr/local/bin/latex but no change.

Help please.

Jeff

Dieter Simader(R)

07.12.2014, 18:57

@ JayArr
 

Upgrade problems

Hi All

I solved this problem,

ln -s /usr/local/bin/pdflatex /bin/pdflatex

I'm guessing that sql-ledger is looking at /bin for pdflatex and the fact
that FreeBSD installs it in /usr/local/bin is the problem.

It should be noted that I can type pdflatex from my command line and it
will run so the environment variables on the server are including
/usr/local/bin, sql-ledger is either using a direct location of
/bin/pdflatex or it's not picking up the environment variable to include
/usr/local/bin.

I hope this post will help the next FreeBSD builder.

:-)

Jeff


There is a line in sql-ledger.conf to add to the path.

# if the server can't find gzip or latex add the path
$ENV{PATH} .= ":/usr/local/bin";

JayArr(R)

Mission BC Canada,
07.12.2014, 19:40

@ Dieter Simader
 

Upgrade problems

Thanks Dieter!

I don't know why I didn't see that there, I've only been in that file a dozen times in the last few days. I guess sometimes you just get a little blind.

Tex works great but I still can't print.

I can print .pdf to screen or save as a file but I now have the new problem that it won't send it to the printer, I'm sure this last problem is some simple syntax error on my part.

My printer is called Frankenstein (heavily modified, no covers, wires everywhere Xerox network copier) :-)

when I print to it I get the error:

Error!

| lpr -P Frankenstein : No such file or directory

I can print a test page to Frankenstein from the CUPS admin page
also
From the command line 'lpr -P Frankenstein VERSION' works, I get a page with '3.0.6'
also
I can run 'less VERSION | lpr -P Frankenstein' and get a page with '3.0.6'
(BTW these last two also work as lp -d instead of lpr -P)

so I think I'm set up properly to print.

I went into System/workstations

Under 'Default'

Printer Description = Frankenstein

Command = lpr -P Frankenstein

so what did I get wrong?

Jeff

Hi All

I solved this problem,

ln -s /usr/local/bin/pdflatex /bin/pdflatex

I'm guessing that sql-ledger is looking at /bin for pdflatex and the
fact
that FreeBSD installs it in /usr/local/bin is the problem.

It should be noted that I can type pdflatex from my command line and it
will run so the environment variables on the server are including
/usr/local/bin, sql-ledger is either using a direct location of
/bin/pdflatex or it's not picking up the environment variable to include
/usr/local/bin.

I hope this post will help the next FreeBSD builder.

:-)

Jeff


There is a line in sql-ledger.conf to add to the path.

# if the server can't find gzip or latex add the path
$ENV{PATH} .= ":/usr/local/bin";

Dieter Simader(R)

08.12.2014, 11:46

@ JayArr
 

Upgrade problems

Thanks Dieter!

I don't know why I didn't see that there, I've only been in that file a
dozen times in the last few days. I guess sometimes you just get a little
blind.

Tex works great but I still can't print.

I can print .pdf to screen or save as a file but I now have the new problem
that it won't send it to the printer, I'm sure this last problem is some
simple syntax error on my part.

My printer is called Frankenstein (heavily modified, no covers, wires
everywhere Xerox network copier) :-)

when I print to it I get the error:

Error!

| lpr -P Frankenstein : No such file or directory

is your printer set up to print pdf files. Usually you can only print .ps files.

You could also try

lpr -PFrankenstein

no space between -p and Frankenstein.

or if Frankenstein is the default printer

lpr

will do too.

JayArr(R)

Mission BC Canada,
08.12.2014, 15:09

@ Dieter Simader
 

Upgrade problems

I don't know how or why but it started working last night, I played around with installing the printers commands directly into the sql-ledger.conf file like it was in 2.8.32 and it didn't work so I commented them back out and then I put the exact same command into the workstation field and it worked. I generally dislike not knowing how I solved a problem because it could happen again and I'm none the wiser but for now it's printing.

Thanks!



is your printer set up to print pdf files. Usually you can only print .ps
files.

You could also try

lpr -PFrankenstein

no space between -p and Frankenstein.

or if Frankenstein is the default printer

lpr

will do too.

Back to index page
Thread view  Board view
986 Postings in 325 Threads, 327 registered users, 96 users online (0 registered, 96 guests)
SQL-Ledger User Forum | Admin contact
RSS-Feed
powered by my little forum