Problem with make install

Asked by Anthony

Hello,
My name is Anthony.
I am an user of KiCAD and I compile the master branch of KiCad some times.
Today, I am encountering a problem when use make install.

Here is the error of make install command:
CMake Error at pcbnew/cmake_install.cmake:85 (file):
  file INSTALL cannot copy file "/home/anthony/build/KiCAD/pcbnew/pcbnew.py"
  to "/lib64/python3.7/site-packages/pcbnew.py".

In the cmake_install.cmake generate file, I have:
file(INSTALL DESTINATION "/lib64/python3.7/site-packages" TYPE FILE FILES "/home/anthony/build/KiCAD/pcbnew/pcbnew.py")
and file(INSTALL DESTINATION "/lib64/python3.7/site-packages" TYPE FILE RENAME "_pcbnew.so" FILES "/home/anthony/build/KiCAD/pcbnew/_pcbnew.kiface")

For create Makefile, I use cmake gui and I write for CMAKE_INSTALL_PREFIX /home/anthony/.local/ and DEFAULT_INSTALL_PATH /home/anthony/.local/

My config
Application: Pcbnew
Version: (5.99.0-243-g846397c69), release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.66.0 OpenSSL/1.1.1d-fips zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.0/openssl/zlib nghttp2/1.39.2
Platform: Linux 5.3.4-300.fc31.x86_64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
    Build date: Oct 19 2019 13:56:31
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
    Boost: 1.69.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.66.0
    Compiler: GCC 9.2.1 with C++ ABI 1013

Build settings:
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=ON
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Thanks to all developer for great works on Kicad.

Best regards,

Question information

Language:
English Edit question
Status:
Solved
For:
KiCad Edit question
Assignee:
No assignee Edit question
Solved by:
Anthony
Solved:
Last query:
Last reply:
Revision history for this message
Wayne Stambaugh (stambaughw) said :
#1

The install path for the KiCad Python module is in the system Python path. To install in this path you must have root privileges. Therefore you must run `sudo make install` so the CMake install command can copy the KiCad Python module to the correct path. I don't know how or if you can do this with the CMake gui application. I always use the command line.

Revision history for this message
Anthony (anthonyco) said :
#2

With sudo, it works.
Thanks for you reply.