TeX Live and MacTeX ⇒ A bunch of newbie questions
A bunch of newbie questions
I have just started with web programming, linux and suxh, and i wanted to include latex in my site to use it in posts and comments and such.
I was successful to follow http://www.forkosh.dreamhost.com in order to install mimetex in my server (shared hosting), however, i find it impossible to use mathtex.
the goal is to be able to draw circuits.
I have installed TeXLive, and all of its packages in my server, and now i need to know where the DVIPNG file is, in order to be able to convert the output.
Here come the questions:
1. Does DVIPNG get installed automatically with TeXLive?
1.1. If so, does anyone know what is the default folder?
1.2. If not, how can I install it?
I probably should ask this in a linux forum, but maybe someone here has encountered that problem already,
I tried installing the ImageMagick software, but i can't find the "convert" file specified in the tutorial shown above. Where should i look for it? maybe someone knows?
I know this may be very vague, and I realize that I might not be asking the right questions, the thing is I don't really know what questions to ask either. Perhaps someone here can guide me.
Thank you very much!
rickszyr
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
A bunch of newbie questions
Have you installed TeXLive from source (ie did you get it from http://www.tug.org/texlive/)?rickszyr wrote: Here come the questions:
1. Does DVIPNG get installed automatically with TeXLive?
1.1. If so, does anyone know what is the default folder?
1.2. If not, how can I install it?
I did and on my system dvipng seems to be installed by default at the following path:
Code: Select all
[php1ic@localhost ~]$ which dvipng~/TeXLive2010/bin/i386-linux/dvipng[php1ic@localhost ~]$
Re: A bunch of newbie questions
Yes I did install TeXLive from source.
Have you been able to use it online to post graphics and such?
A bunch of newbie questions
Installing from the net installer, the binary for dvipng was placed in:
Code: Select all
/usr/local/texlive/2010/bin/x86_64-linux/
If:
Code: Select all
which dvipng
If you have root access, try:
Code: Select all
sudo updatedblocate dvipng
Code: Select all
find / -name dvipng
If you don't have root access, and know it would be installed somewhere in your home folder, you can try:
Code: Select all
find ~ -name dvipng
Re: A bunch of newbie questions
I found dvipng!
Now I have a problem that is the following, the dvipng says (something like this)
gs: cannot find libgd.so.8 or something like that... any ideas?
this happens when, for example, i try to use another package... say pst-circ, or circuitiks.
Thanks!
A bunch of newbie questions
How did you install Ghostscript? From source as well?
What Linux distribution are you using? Surely, it would be better to use its package manager so you can easily resolve dependencies, unless you're one of the masochist few who really must install everything from scratch!
On my distribution (ArchLinux) libgd.so is part of the gd package. On Ubuntu (and I imagine other Debian-based distros), it seems to be in the libgd2-xpm-dev.
Re: A bunch of newbie questions
So i'm guessing my linux distribution is CentOS?
it's hosted in a shared hosting service, that's why this is sort of special.
Do I need to install ghostscript to make all of this work? If I can avoid it better!
the error it was throwing is the following:
<literal PSdvipng warning: PostScript environment contains DVI commands dvipng warning: PostScript environment contains DVI commands dvipng warning: PostScript environment contains DVI commands dvipng warning: PostScript environment contains DVI commands gs: error while loading shared libraries: libgs.so.8: cannot open shared object file: No such file or directory
Is this because i need to install libgd? what is the difference between this and libgs?
Thank you!
RickSzyr
Re: A bunch of newbie questions
gs is ghostscript -- it looks like ghostscript is already installed (--it may be installed system wide--), but to work right with LaTeX, it needs access to libgd as well. "which gs" should tell you where ghostscript is installed.
Is the issue that you don't have root access to the server, so you cannot use its package manager in the normal way? That does make things very tricky. I'm afraid I have no experience with trying to make this work, and I'm not really sure what your options are.
Re: A bunch of newbie questions
because i can't find any libgs in the ghostscript tar file that i downloaded so maybe that's not what i need to download!
ANYWAYS, apparently i just need to get a dedicated server or a vps, so i can get root access and install whatever i want, however that's over my budget so I think i'll have to stick to mimetex for now. UNLESS, there is a way to include latex packages to mimetex. Anyone knows anything about that?
A bunch of newbie questions
Code: Select all
find / -name libgs.so 2>/dev/null
I don't know anything about mimetex, I'm afraid; maybe someone else will.