flathub / org.freedesktop.Sdk.Extension.texlive

7 stars 5 forks source link

epstopdf does not work #72

Open smiddy opened 2 years ago

smiddy commented 2 years ago

Hello,

Thanks for providing texlive as a flatpak

I try to use texlive with the flathub versions of both TexStudio and TexMaker. But in both cases I cannot get a converted pdf.

In TexStudio, I receive also the error

perl: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory system returned with code 32512

Attached you find a MWE. testepstopdf.zip

My versions:

TeXstudio                                   org.texstudio.TeXstudio                    4.2.0 
TeX Live Sdk extension                      org.freedesktop.Sdk.Extension.texlive      20210325
Texmaker                                    net.xm1math.Texmaker                       5.1.2

System: Xubuntu 20.04.3, no Texlive installed via repositories

jakobjakobson13 commented 2 years ago

Could you also post the info of the texlive package provided by flatpak info org.freedesktop.Sdk.Extension.texlive?

smiddy commented 2 years ago
TeX Live Sdk extension - LaTeX packages and tools

          ID: org.freedesktop.Sdk.Extension.texlive
         Ref: runtime/org.freedesktop.Sdk.Extension.texlive/x86_64/21.08
        Arch: x86_64
      Branch: 21.08
     Version: 20210325
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 7.7 GB

      Commit: cc3f4d60a022b6010d8165df0c4e42ec7d308ba1d3d62e45793202a7f614b548
      Parent: dfad34ff7d3351091c047f2c336c14cec4f49883b9b04a43fecc0685b7735183
     Subject: Update dvisvgm-2.13.tar.gz to 2.13.1 (#71) (69083b83)
        Date: 2022-01-27 21:23:04 +0000
jakobjakobson13 commented 2 years ago

I took a look into you problem:

Unfortunately, I can´t help you any further. Perhaps the texstudio maintainer can help out?

hfiguiere commented 2 years ago

As I mentioned in another issue, there are issues with Perl in some situations.

nrbeaton commented 2 years ago

I am getting the same issue when trying to use biber (together with TeXstudio). Using bibtex instead works OK.

jakobjakobson13 commented 2 years ago

I am getting the same issue when trying to use biber (together with TeXstudio). Using bibtex instead works OK.

@nrbeaton: Did you try run biber directly from the texlive extension?

$ flatpak run --command=sh --filesystem=home --runtime=org.freedesktop.Sdk org.freedesktop.Sdk.Extension.texlive
[org.freedesktop.Sdk org.freedesktop.Sdk.Extension.texlive]$ biber yourfile.bib
nrbeaton commented 2 years ago

@jakobjakobson13 running

$ flatpak run --command=sh --filesystem=home --runtime=org.freedesktop.Sdk org.freedesktop.Sdk.Extension.texlive

changes the terminal to

[📦 org.freedesktop.Sdk.Extension.texlive ~]$ 

then if I try to run biber I just get

sh: biber: command not found
jakobjakobson13 commented 2 years ago

@nrbeaton This is an Texstudio issue. Biber runs if you start it from the extension.

$ flatpak run --command=sh org.texstudio.TeXstudio
[📦 org.texstudio.TeXstudio ~]$ biber
perl: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory
bztd commented 5 months ago

@jakobjakobson13 @hfiguiere I have the same problem. According to what you see, the problem is related to the change of route. I think a solution to avoid everyone having to compile perl is to make two compilations, one for the internal dependencies in the texlive build and another for a standard location in the packages that use texlive like (/app/texlive). The truth is I don't know if it works.

hfiguiere commented 5 months ago

There is not need to build it twice. Perl IS in the Sdk (not runtime) so it's available at build time.

jakobjakobson13 commented 5 months ago

@bztd Could you try all three tex editors (org.texstudio.TeXstudio, org.tug.texworks, net.xm1math.Texmaker) to check if this issue is a issue of the texlive extension or the respective editor?

bztd commented 5 months ago

@jakobjakobson13 I had the problem with lyx. In the first instance I added libperl.so to LD_LIBRARY_PATH and got other errors.

Then I set all the mentioned environment variables and the problem persisted. invoked epstopdf from the terminal. Finally I recompile perl as in the request and overwrote the one found in the texlive package and the problem was solved.

I'll see what happens with other packages although they will be limited.

bztd commented 5 months ago

Texmaker: converted-to.pdf' not found: using draft setting. See the pdftex.def package documentation for explanation.

the other packages are very heavy

jakobjakobson13 commented 5 months ago

So as far as I understand epstopdf is just a perl script and testing the perl installation via the command flatpak run --command=sh xxx.yyy.zzz results in the following:

$ flatpak run --command=sh org.tug.texworks 
[📦 org.tug.texworks ~]$ perl
sh: perl: command not found
$ flatpak run --command=sh net.xm1math.Texmaker 
[📦 net.xm1math.Texmaker ~]$ perl
sh: perl: command not found.
$ flatpak run --command=sh org.texstudio.TeXstudio 
[📦 org.texstudio.TeXstudio ~]$ perl
perl: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory

So, apparently we are missing the perl executable in our $PATH. But I honestly don´t know if it is better placed in the texlive extension or the respective editors.