View Issue Details

IDProjectCategoryView StatusLast Update
0004768PartBugpublic2021-10-19 13:02
Reporterjack9603301 Assigned To 
PrioritynormalSeveritytrivialReproducibilityalways
Status newResolutionopen 
PlatformLinuxOSKubuntuOS Version21.04
Product Version0.20 
Summary0004768: Source code installation failed
Descriptionsee: https://forum.freecadweb.org/viewtopic.php?f=4&t=63002&p=540842#p540842

This appears to be caused by
StartGui.so
and
Start.so
not having the permissions it should have, when executing the following command:


cd /usr/lib/x86_64-linux-gnu/
find -type f -name "*.so" | xargs -I {} sudo chmod a+x {}

It is normal for
Steps To ReproduceTo compile and install, run the following command:


cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_EXECUTABLE=/usr/bin/python3 -DFREECAD_USE_PCL=ON -DFREECAD_USE_PYBIND11=ON -DCMAKE_BUILD_TYPE=Release
make
sudo make install
TagsNo tags attached.
FreeCAD Information<!--ATTENTION:
COMPLETELY ERASE THIS AFTER PASTING YOUR
Help > About FreeCAD > Copy to clipboard
NOTE: just the snippet alone will do without anything else included.
The ticket will not be submitted without it.
-->

OS: Ubuntu 21.04 (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.
Build type: Release
Branch: unknown
Hash: 0926a4148bcff11249fd4f56bc30256102ffe105
Python version: 3.9.5
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.5.2
Locale: Chinese/China (zh_CN)

Activities

jack9603301

2021-10-18 19:16

reporter   ~0015992

Well, I should add that it doesn't seem to be caused by a permissions issue, but rather by my accidental execution in the following path. Strange..

cd /usr/lib/x86_64-linux-gnu/
FreeCAD

jack9603301

2021-10-18 19:22

reporter   ~0015993

The problem seems to be related to the fact that the associated dynamic libraries are not python3 working paths (such as /usr/mod)...


FreeCAD  -M /usr/lib/x86_64-linux-gnu
2021-10-19_03-21.png (188,096 bytes)   
2021-10-19_03-21.png (188,096 bytes)   
2021-10-19_03-22.png (136,973 bytes)   
2021-10-19_03-22.png (136,973 bytes)   

jack9603301

2021-10-19 10:22

reporter   ~0015994

Last edited: 2021-10-19 13:02

Run the following command to start:

FreeCAD  -M /usr/lib/x86_64-linux-gnu

I think this is a mistake, and if those dynamic library were in the same directory as python mods, then everything would be fine.
Perhaps the people concerned just need to modify the Cmake installation configuration to fix this error.
This problem has been tested.
Although the cause of the error was misjudged once, it was indeed a flaw in the installation process
This is not a serious error because it can be resolved by -M, but it is a defect.
Some people like to compile and install (maybe to track and participate in freecad development in the future, maybe to track the latest changes in development branches, participate in the community, or simply want to compile themselves to meet 100% compatible ABI, but in any case, they want to compile and install)
As the most commonly used manual installation method of Linux, especially the operation and maintenance personnel, the use of compilation and installation should not be hindered by defects (tracing the exact directory of each dynamic library often wastes redundant time)

ps: Can someone help me move this bug report to the right project? It should not belong to part, but to freecad

yorik

2022-03-03 13:55

administrator   ~0017105

This ticket has been migrated to GitHub as issue 6274.

Issue History

Date Modified Username Field Change
2021-10-18 19:06 jack9603301 New Issue
2021-10-18 19:16 jack9603301 Note Added: 0015992
2021-10-18 19:22 jack9603301 Note Added: 0015993
2021-10-18 19:22 jack9603301 File Added: 2021-10-19_03-21.png
2021-10-18 19:22 jack9603301 File Added: 2021-10-19_03-22.png
2021-10-19 09:48 jack9603301 Severity major => trivial
2021-10-19 10:22 jack9603301 Note Added: 0015994
2021-10-19 13:02 jack9603301 Note Edited: 0015994