This forum has been archived. All content is frozen. Please use KDE Discuss instead.

'make install' fails for latest 2.9 release as regular user

Tags: None
(comma "," separated)
leolist
Registered Member
Posts
47
Karma
0
When trying to install 2.9 on Ubuntu 17.10 as a regular user I get the following error(s)
Code: Select all
[ 99%] Built target pofiles_38
[ 99%] Built target pofiles_39
[ 99%] Built target doc-fr-handbook
[ 99%] Built target doc-nl-handbook
[ 99%] Built target doc-pt-BR-handbook
[100%] Built target doc-de-handbook
[100%] Built target doc-pt-handbook
[100%] Built target doc-en-US-handbook
[100%] Built target doc-uk-handbook
[100%] Built target doc-sv-handbook
[100%] Built target doc-ru-handbook
[100%] Built target doc-es-handbook
[100%] Built target amarok_afttagger
[100%] Built target amzdownloader
[100%] Linking CXX executable amarokcollectionscanner
[100%] Built target amarokcollectionscanner
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /usr/share/kde4/config/amarok_homerc
CMake Error at data/cmake_install.cmake:44 (file):
  file INSTALL cannot copy file
  "/home/llist/tmp/amarok-2.9.0/data/amarok_homerc" to
  "/usr/share/kde4/config/amarok_homerc".
Call Stack (most recent call first):
  cmake_install.cmake:37 (include)


Makefile:128: recipe for target 'install' failed
make: *** [install] Error 1


I used cmake as follows
Code: Select all
cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DDBUS_INTERFACES_INSTALL_DIR=/home/llist/kdedev -Wno-dev -DKDE4_BUILD_TESTS=OFF -DWITH_MP3Tunes=OFF

No errors were reported during cmake or make

My environment variables are as follows
Code: Select all
export PATH=$HOME/kdedev/bin:$PATH
export LD_LIBRARY_PATH=$HOME/kdedev/lib:$LD_LIBRARY_PATH
export XDG_DATA_DIRS=$HOME/kdedev/share:$XDG_DATA_DIRS
export XDG_DATA_HOME=$HOME/kdedev/share:$XDG_DATA_HOME
export KDEDIR=$HOME/kdedev
export KDEDIRS=$KDEDIR
export XDG_DATA_DIRS=$HOME/kdedev/share:$XDG_DATA_DIRS
User avatar
claydoh
Registered Member
Posts
1170
Karma
9
OS
You have to run make install with sudo as it needs to be able to write to system directories.


claydoh, proud to be a member of KDE forums since 2008-Oct, and KDE user since 2001
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS
You won't need sudo if you want to install it in your $HOME, but you need to use the right prefix:

-DCMAKE_INSTALL_PREFIX=$KDEDIR


--
Mark Kretschmann - Amarok Developer
leolist
Registered Member
Posts
47
Karma
0
leolist
Registered Member
Posts
47
Karma
0
Almost there.

Code: Select all
-- Installing: /home/llist/kdedev/share/apps/amarok/icons/hicolor/48x48/actions/./view-services-amazon-amarok.png
-- Installing: /home/llist/kdedev/share/apps/amarok/icons/hicolor/48x48/actions/./view-services-ampache-amarok.png
-- Installing: /home/llist/kdedev/share/apps/amarok/icons/hicolor/48x48/actions/./view-services-gpodder-amarok.png
-- Installing: /home/llist/kdedev/share/apps/amarok/icons/hicolor/48x48/actions/./view-services-jamendo-amarok.png
-- Installing: /home/llist/kdedev/share/apps/amarok/icons/hicolor/48x48/actions/./view-services-lastfm-amarok.png
-- Installing: /home/llist/kdedev/share/apps/amarok/icons/hicolor/48x48/actions/./view-services-magnatune-amarok.png
-- Installing: /home/llist/kdedev/share/apps/amarok/icons/hicolor/48x48/actions/./view-services-mp3tunes-amarok.png
-- Installing: /usr/lib/libamarokshared.so.1.0.0
CMake Error at shared/cmake_install.cmake:56 (file):
  file INSTALL cannot copy file
  "/home/llist/tmp/amarok-2.9.0/build/lib/libamarokshared.so.1.0.0" to
  "/usr/lib/libamarokshared.so.1.0.0".
Call Stack (most recent call first):
  cmake_install.cmake:39 (include)


Makefile:128: recipe for target 'install' failed
make: *** [install] Error 1
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
ah, to write in a /usr/lib/ folder you do need sudo rights, and that is what is requested in the line highlighted by the error.


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
leolist
Registered Member
Posts
47
Karma
0
So there is no switch/flag to use $HOME/kdedev/lib as the lib folder?
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
not a switch or flag, but define your environment variables pointing to use $HOME and reload


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
leolist
Registered Member
Posts
47
Karma
0
My env variables are set as per my post above

Code: Select all
echo $LD_LIBRARY_PATH
/home/llist/kdedev/lib:
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
You have some strange parameters in your Cmake line, try removing this part:
Code: Select all
 -DDBUS_INTERFACES_INSTALL_DIR=/home/llist/kdedev -Wno-dev


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
heirecka
KDE Developer
Posts
6
Karma
0
OS
Setting LIB_INSTALL_DIR should do the trick, although that should already be set to something suitable relative to CMAKE_INSTALL_PREFIX.
leolist
Registered Member
Posts
47
Karma
0
Running cmake as follows now
Code: Select all
cmake .. -DCMAKE_INSTALL_PREFIX=$KDEDIR -Wno-dev -DKDE4_BUILD_TESTS=OFF -DWITH_MP3Tunes=OFF

and getting a different error for 'make install'

Code: Select all
[100%] Built target doc-de-handbook
[100%] Built target doc-pt-handbook
[100%] Built target doc-en-US-handbook
[100%] Built target doc-uk-handbook
[100%] Built target doc-sv-handbook
[100%] Built target doc-ru-handbook
[100%] Built target doc-es-handbook
[100%] Built target amarok_afttagger
[100%] Built target amzdownloader
[100%] Built target amarokcollectionscanner
Install the project...
-- Install configuration: "RelWithDebInfo"
CMake Error at data/cmake_install.cmake:44 (file):
  file cannot create directory: /share/config.  Maybe need administrative
  privileges.
Call Stack (most recent call first):
  cmake_install.cmake:37 (include)


Makefile:128: recipe for target 'install' failed
make: *** [install] Error 1
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
could it be you are in the wrong subdirectory when building?


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
leolist
Registered Member
Posts
47
Karma
0
Possible, but I don't think so.

  • Created build directory
  • Set my environment as per above post
  • cd to build directory
  • cmake
  • make
  • make install
heirecka
KDE Developer
Posts
6
Karma
0
OS
I've just tested this here, still works for me.

What does "echo $KDEDIR" return?
What does "grep -F CMakeCache.txt" executed from the build dir return?


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]