LaTex install instructions say,
you must add the directory of TeX Live binaries to your PATH
PATH=/usr/local/texlive/2020/bin/x86_64-linux:$PATH
Use the syntax for your shell, your installation directory, and your binary platform name instead of x86_64-linux.
how do I set the PATH for Latex binaries?
where are TeX Live binaries? I looked everywhere in Dolphin file explorer, where I unzipped the Latex.
why is the instruction saying to add to my PATH a directory I do not even have? I do not have a folder called texlive in local directory, so I’m very confused. Do I need to reinstall?
I installed using this command, perl install-lt -gui ,and everything seemed OK. However, a GUI never opened up during the install.
How come when I run the install Test, latex small2e, I get the error further pasted below?
my details,
echo $PATH
/home/umike1/bin:/usr/local/bin:/usr/bin:/bin:/usr/lib/mit/bin
Latex download unzipped to this directory,
/home/umike1/test/install-tl-20200615/
what I think I need to do in terminal,
export PATH=$PATH:/path/to/new/directory
or maybe this,
set path = ( $path /new/path /another/path )
or maybe this,
setenv PATH=$PATH:/usr/local/something/something2
Then, Latex instructions say to Test,
After a successful installation, please try processing simple test documents, such as latex small2e.
I get this error, If ‘latex’ is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf latex
cnf latex outputs the following,
If ‘latex’ is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf latex
Other questions, as I’m new to Linux, regarding OpenSuse Desktop
What is “your (my) shell” referring to?
What is “your (my) binary platform name?”
As nrickert says, if you install latex packages using zypper/yast, the paths should be automatically set. If you intend to download packages manually, calling path entirely depends on which shell you call it from.
I typically mostly use bash shell, therefore I tweak the file ~/.bashrc and I use the syntax “export”, in other words I insert
export PATH=$PATH:/path/to/new/directory
in my
~/.bashrc
I’ve never used the syntax “set” and “setenv” is really a c shell syntax. To answer your question:
What is “your (my) shell” referring to? Assume your shell is “Bourne shell” otherwise known as bash. Everything runs off of bash by default.
What is “your (my) binary platform name?” I am not sure what they are referring to here, I think probably the kernel version and whether if your system is 64/32 bit.
As nrickert said, it’s best to use Yast/Zypper to install your latex packages. I typically install all of them from
texlive-scheme-full
texlive-collection-latex
packages from the defaulte repository by typing
sudo zypper in texlive-scheme-full texlive-collection-latex
If you don’t know what you’re doing, I strongly recommend forget what you are trying to do from Quick install - TeX Live - TeX Users Group and just do as recommended above.
A bit off-topic, but bash is the mnemonic and command to invoke the Bourne-again shell. It is the GNU implementation of the Bourne shell (which is invoked by sh originaly) and as such a pun on that name.
Zypper downloaded the latex (texlive) files onto my computer the other day during a routine zypper up update. I still don’t know how this occurred. It took me hours to delete these files using the software manager. I have no use for latex.
From the above, it is evident that the software manager can supply latex (texlive) files.
Also, be aware that there are about 2200 individual files that take up 1.5 gig of disk space.
I haven’t installed it for Leap 15.1 or Leap 15.2, because I haven’t needed it lately. It has not accidentally installed for me, though I would be okay with that.
Thank you. your comments probably would have worked for me, but I ran out of disk space. I installed OpenSUSE with defaults and let it shrink my hard drive running Windows. OpenSuse wanted about 35GB. I think I will start again and shrink a new partition myself then install openSuse onto maybe 100GB. My objective is to get Node/npm running to run a website that makes PDFs using laTex. I suppose I will ignore setting PATH manually as this is much easier.
A. for extra learning, why is Latex only found as being named texlive in Software YaST->Management? is LaTex, the publisher name and texlive is the name for OpenSuse package?
B. next time, should I install only?
texlive-collection-latex
texlive-scheme-full (I think this requires collection-latex, so I need to install this second right? according to dependencies in YaST. and the other thread linked in this thread)
C. any ideas on why texlive takes up about 20GiB, maybe 40GiB? I was about halfway installing 2,158 packages, like mentioned in this thread.
**D…before I recycle this PC/Dualboot Suse, is there a way I can undo this hard drive filling, so I can test a few more things with node and samba?
**
…output of df command…
df -B 1000000
Filesystem 1MB-blocks Used Available Use% Mounted on
devtmpfs 3867 0 3867 0% /dev
tmpfs 3879 56 3823 2% /dev/shm
tmpfs 3879 10 3869 1% /run
tmpfs 3879 0 3879 0% /sys/fs/cgroup
/dev/sda6 37581 8167 29347 22% /
/dev/sda6 37581 8167 29347 22% /.snapshots
/dev/sda5 525 6 519 2% /boot/efi
/dev/sda6 37581 8167 29347 22% /usr/local
/dev/sda6 37581 8167 29347 22% /opt
/dev/sda6 37581 8167 29347 22% /boot/grub2/i386-pc
/dev/sda6 37581 8167 29347 22% /root
/dev/sda6 37581 8167 29347 22% /home
/dev/sda6 37581 8167 29347 22% /boot/grub2/x86_64-efi
/dev/sda6 37581 8167 29347 22% /var
/dev/sda6 37581 8167 29347 22% /srv
/dev/sda6 37581 8167 29347 22% /tmp
tmpfs 776 1 776 1% /run/user/1000
Okay… I think we’re going to run into changing topic from how to get latex to work, to installation/setup if we continue this path but I will answer the following:
A. for extra learning, why is Latex only found as being named texlive in Software YaST->Management? is LaTex, the publisher name and texlive is the name for OpenSuse package? There are few different projects who work on LaTeX packages such as MikTex, or Texlive and these are different versions of “LaTex” typesetting system. It’s similar to buying Logitech keyboard v.s. Microsoft keyboard, where Logitech/Microsoft are “Miktex/Texlive” and “LaTex” is the keyboard.
B. next time, should I install only?
texlive-collection-latex
texlive-scheme-full (I think this requires collection-latex, so I need to install this second right? according to dependencies in YaST. and the other thread linked in this thread)
I install both because I use Latex extensively but for most people’s application, you don’t want either of the above. You should install instead texmaker/texstudio and tell it to “install pakages on the fly/by request” when packages are missing, and get the packages you need when you need them.
C. any ideas on why texlive takes up about 20GiB, maybe 40GiB? I was about halfway installing 2,158 packages, like mentioned in this thread.
20~40GB sounds very large. It doesn’t sound right to me. My installation is 2~4GB using the full scheme and collection packages. About the same number of packages, but 10 times smaller in size.
**D…before I recycle this PC/Dualboot Suse, is there a way I can undo this hard drive filling, so I can test a few more things with node and samba?
**This should go into the installation section of the forums but I’m surprised at the number of partitions there are in your system. I haven’t used the default installation mode but this doesn’t look good. I typically only have
good news, I re-read the http://tug.org/texlive/quickinstall.html, instructions, and these commands, very quickly, removed and resolved my failed texlive install drive space issue. I know one extra partition is the OEM recovery partition that came with PC.
:~ # zypper in texlive
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following 2638 NEW packages are going to be installed:
...
2638 new packages to install.
Overall download size: 1.12 GiB. Already cached: 0 B. After the operation, additional 1.7 GiB will be used.
Continue? [y/n/v/...? shows all options] (y):