[Solved] Installing Texmacs on Kubuntu 22.04 (I keep racking my brain to it)

I tried again the static binary, but it seems to work now, I mean without the root need, I do absolutely not know how, but it works.
So I will use it until we have a proper ubuntu version, or until someone tells me how to install this version, if it’s relevant.
Anyway, thank you pireddag.

EDIT : the root problem came back :upside_down_face:

I’m really sorry to bother, but is there anyone that have the answer to my problem ?

What happens if you do the gksu thing? @mgubi, @jeroen or @sadhen could perhaps help you better than me, but in these days they are not present in the forum and the suggestion I gave is the only direction in which I am able to move. If gksu does not work we can figure out how to make the idea work.

I would strongly advise against using sudo as a solution, as TeXmacs documents could execute commands on your system as root.

It would be useful to have some more details on what is happening when you save a file. Could you start TeXmacs from the terminal and see if any error messages are printed there?

1 Like

Sure, here are what I get :

This build in the screenshot is opening the system’s save file dialogue window (visible behind the blank save window). Is that window accessible or does the blank window always stay in front?

The save file code has recently been changed to use a custom dialogue on Linux, which should fix this:

This commit is included in 2.1.2, but the builds on the website seem still to be 2.1.1. Until they are updated, you could try the AppImage from here:

If you want to try compiling yourself, perhaps these notes can give you some hints on what libraries you need to install (as the Raspberry Pi OS is Debian-based, like Ubuntu):

Specifically, for freetype, try installing libfreetype-dev.

There seems a lag in buildings of Debian (current stable) & Ubuntu.


So, the appimage won’t download for some reason, manually the download won’t start and with curl, the download starts but when I try to execute it, it gives this error : 2022-07-24_16-05.

I tried to compile like by myself, but the installing of Guile create problems : the errors on the terminal.
And then when I try to install texmacs anyway, it says that Guile 2 is not compatible, same shit.

If possible, could you manually send me files of the appimage so I could download them.

Thanks for the work you do to help me.

Compiling GNU TeXmacs on Ubuntu 22.04 is not an easy task for everyone. Because we have to compile GNU Guile 1.8 first.

You may try to compile Mogan (my fork of GNU TeXmacs):

It is much easier to compile and make a deb package by yourself.

You can verify the checksum for the downloaded file with sha256sum texmacs-latest-x86_64.AppImage.

I get b62ed8d8a6d294cbfe14d3741e036bd57e9b7fcedc64486f4f4975782fd9057f ./texmacs-latest-x86_64.AppImage

Although, @jeroen and @sadhen, installing TeXmacs on Ubuntu ought to be straightforward so that anyone that feels like trying it can do so immediately.

If I understand correctly, the previous Debian maintainer was recently retired. It would be expected that there might be some issues and lags on Debian/Ubuntu building.

@jeroen, I get different checksum every time I curl it, and I still can’t download the file without it.
So it would cool to have some copied files from you.

@sadhen, sorry but can you tell me how to compile from yours, I am a newbie to this kind of things. Thanks in advance

We should get this working for everyone instead of sending files around.

Please inspect the file you have downloaded with an editor, you may be downloading some HTML instead of a binary. Also try wget, this works for me:

wget https://download.opensuse.org/repositories/home:/slowphil:/texmacs-devel/AppImage/texmacs-latest-x86_64.AppImage

After downloading, you need to add an executable flag to the file (chmod u+x texmacs-latest-x86_64.AppImage)

Also, I have tried the packages for Ubuntu 22.04 from here. They work perfectly for me. It would be useful if you could provide some detail on what is going wrong for you. Did you add the repository or did you just download the binary package?

To be honest, I think the TeXmacs website should just link to the repositories by @pjoyez on OBS. They should be much easier to maintain (with the option to have several maintainers), and they provide automatic updates.

Once we have moved away from Guile 1.8, it should also be feasible to get TeXmacs packaged in Debian again.

1 Like

sorry but can you tell me how to compile from yours, I am a newbie to this kind of things. Thanks in advance

See https://github.com/XmacsLabs/mogan/blob/main/.github/workflows/ci-ubuntu-20.04.yml

Once you have installed all the dependencies, you can use packages/debian/package.sh.

I also had problems using the debian package linked on texmacs.org. The file chooser dialogues did not display correctly and interactive sessions usually led to crashes.
My own build doesn’t have those issues but is sluggish probably due to lack of certain optimisation. Now on the OBS appimage and it has been quite smooth.

@jeroen, I tried to add the repository to install it, and it seems to work, same thing for the appimage (yes I was downloading the html :sweat_smile::sweat_smile:).
But now I get new errors, like this when I try to save a file : 2022-07-25_07-05

That is very strange. Are you saving to a new or existing file? If new, can you open an existing .tm file, make some changes and try to save it?

It was the same problem with both of them, but now it seems solved (what a mystery, i didn’t do anything).

Everything seems to work, for now, thank you all.
And especially, of course, thank you @jeroen, you are awesome.

1 Like