When I compile (Ctrl-R) the program, I get an error merrage:
/home/pasi/.arduino15/packages/esp32/tools/esptool_py/4.9.dev3/esptool: error while loading shared libraries: libz.so.1: failed to map segment from shared object
exit status 127
Compilation error: exit status 127
I removed Arduino_IDE, .arduino15 .arduinoIDE and Arduino and arduino directories in .config directory and reinstalled Arduino 2.3.4.
And got the same problem, when I tried to compile.
What to do ?
IDE ver 2.3.4,
WEMOS D1 MINI ESP32,
esp32 by Espritt ver 3.11
Linux Mint 22.1
It sounds like you are doing something exotic. Show us anything you coded as in a linkage control statement or whatever. Yu must be using some sort of 'shared' memory?
BTW, deleting dirs and re-installing almost never helps.
I'm not going to copy the code here, because it is about 980 tight lines long.
I'm not doing anything exotic. The code compiled fine before I distro -upgraded to Linux Mint 22.1
I think I found the reason. Permissions of file libz-so.1.3 were too tight 744. I chmode it to 755 and now I don't get the same error.
The new error is:
ModuleNotFoundError: No module named 'serial'
I tried 'pip3 install pyserial' and got some pla pla pla.
installe pipx
tried 'pipx install pyserial' and got some more pla pla pla
The fight will continue.
Python is the worst single thing that has happened to computing since M$Windows.
Board esp32-by-Espressif versions 3.1.0 and 3.1.1 have problems. Use 3.0.7
First I thought the problem lies in the library libz.so.1.3 and I changed the permission 644 to 755.
The real problem seems to be in the 'esp32 by Espressif' packets 3.1.0 and 3.1.1.
I have now some spare time, so I test the versions:
ver 3.0.0
Compiles without problems
ver 3.0.4
Does not install at all
ver 3.0.6
Does install
Veeeeryyyyy slow compilation
Compiles OK
ver 3.0.7
Does install
Compiles OK
ver 3.1.0
Does install
ERROR: "error while loading shared libraries: libz.so."
ver 3.1.1
Does install
ERROR: "error while loading shared libraries: libz.so."
So, The last usable board version seems to be 3.0.7
Cross-posting is against the Arduino forum rules. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend a lot of time investigating and writing a detailed answer on one topic, without knowing that someone else already did the same in the other topic.
Repeated cross-posting can result in a suspension from the forum.
In the future, please only create one topic for each distinct subject matter. This is basic forum etiquette, as explained in the "How to get the best out of this forum" guide. It contains a lot of other useful information. Please read it.