неделя, 3 юли 2022 г.

error dlsym@GLIBC_2.2.5 when compiling

 This error, OF COURSE, was due to conda not using my system gcc etc, but I think it's good to have this round of misery archived in case I forget. (Also, my new favorite bash comannd is "history", lol )

So as always use (as many times as needed):

conda deactivate

In my case, it didn't deactivate the first time, instead it brought me back [base] which is the worst possible place to be :).  In fact this:

conda config --set auto_activate_base false

seems like a good solution.

Then it turns this is some kind of math library problem, so what I did is to replace

-lm

with 

-ldl -lmvec -lm

in the Makefile of what I was compiling. After that it compiled fine without further complaints.

I think at one point I also did as suggested here (which honestly I don't know if it was needed because i deactivated conda afterwards, so it could be just conda and the Makefile that did the trick):

EXPORT CFLAGS=" -g -O2 -lm -ldl -Wall -Wpointer-arith -finline-functions -ffast-math -funroll-all-loops";
which for me looked like:
bash -c " export CFLAGS=" -g -O2 -lm -ldl -Wall -Wpointer-arith -finline-functions -ffast-math -funroll-all-loops""
and (as suggested here)
ldd -r /home/denijane/anaconda3/envs/BAO/x86_64-conda-linux-gnu/sysroot/lib64/libdl.so.2

 

 

сряда, 29 юни 2022 г.

How to diff directories in Linux

Actually, in konsole, it's very easy to do diff, just write:

diff -q directory-1/ directory-2/

or to get a recursive comparison just for new files.

diff --brief --recursive --new-file dir1/ dir2/  # with long options 
or  
diff -qrN dir1/ dir2/   # with short flag aliases

 source

But I found it easier in this case to use gui, so I installed Meld

 sudo pacman -S meld

It can compare both files and directories and from what I see so far, it works very well. If you click on a file from directory diff, it automatically opens a window with file diff with highlights of the differences , which is super cool. Also, you can edit on place, Go to line and Find and Replace. If only it could remember your previous session it would be perfect. But it definitely works great for my current project.

понеделник, 9 май 2022 г.

jupyter won't start after system update (kf.service.services: KApplicationTrader: mimeType "x-scheme-handler/file" not found)

sudo pacman -S jupyter-notebook  

sudo pacman -S kde-applications

jupyter-notebook

As idiotic as it is, jupyter tried to start wine, after the update of the whole kde, it started ... Konqueror. Yup. Life's complicated when you update a linux system. Luckily, it can be solved also with 

 jupyter-notebook  --browser=firefox 

 but I found it too late. So anyway, now I have konqueror.