Nristen's (g)log
2022-07-25

Failures Compiling Profanity from Source

After installing regolith2 desktop (Ubuntu 22.04) on my System76 laptop I have been tryinging to install Profanity 0.12.x (xmpp client) from source but "make" was always failing.

When the compiling failed, I tried installing from the os repo (version 0.11.1) but when I tried connecting to the server it would fail.

When compiling the latest (v0.12.1) from source, I was very careful to make sure all of the dependencies were installed but I still got errors when running make.

Tonight, I made another attempt:

1. uninstall profanity 0.11.1 by running,

sudp apt purge profanity

which was successful (no errors)

2. Downloaded https://profanity-im.github.io/tarballs/profanity-0.12.1.tar.gz

3. Ran md5sum <downloaded file> to make sure the checksum matched what was on the website to verify I had a good download.

4. After gunzipping and untarring the file, I ran ./configure and make but had the same issue

tar xzf profanity-0.12.1.tar.gz

5. I looked at the list of dependencies at https://profanity-im.github.io/guide/0120/build.html#pkgdeps again.

6. I remembered that previously I had cloned and compiled the latest version of libstrophe which went without any problems or at least any errors.

7. On a whim, I checked to see what version of libstrophe was packaged with the OS repo. It was 0.11. I wondered if maybe the older version being installed with the newer compiled version was causing issues. So I first uninstalled libstrophe using apt remove.

8. Then I recompiled and reinstalled libstrophe using:

./configure && make && sudo make install

9. After compiling and reinstalling libstrophe with no erros, I again went back to the profanity-0.12.1 directory.

10. I ran:

make clean
.configure
make

11. Woot!!! No errors this time when running make.

12. Needless to say, after running

sudo make install

profanity ran perfectly and connected instantly upon running

/connect karl@chat.theharrisclan.net 

in profanity.

When I ran /help there were more commands available for me to explore and learn about.

Ok, time to stop this post and go play with profanity.

References:

https://profanity.im

https://regolith-desktop.com/

Tags: xmpp, profanity, source, compile

Contact:

mailto:nristen@ctrl-c.club

xmpp:karl@chat.theharrisclan.net

--------

Nristen (g)log index

Nristen Home