Menu

#92 cdemu-daemon installation ERROR (package 'libmirage>=3.0.2' not found)

None
closed
nobody
None
cdemu-daemon
default
2015-10-08
2015-10-07
No

When I use "sudo cmake .." it is incomplete. ERROR is "package 'libmirage>=3.0.2' not found"
But I have installed libmirage-3.0.3. My OS is Fedora 20. What my wrong.

$ sudo echo $PKG_CONFIG_PATH
/usr/local/lib/pkgconfig
$ pkg-config --modversion libmirage
3.0.3
$
$ sudo cmake ..
-- checking for module 'libmirage>=3.0.2'
-- package 'libmirage>=3.0.2' not found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:279 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPkgConfig.cmake:333 (_pkg_check_modules_internal)
CMakeLists.txt:26 (pkg_check_modules)

--
-- *** CDEmu daemon v.3.0.2 configuration summary ***
-- Compiler and build info:
-- C compiler: /bin/cc
-- C flags (Release): -O3 -DNDEBUG
-- C flags (Debug): -g
-- build type: Release
-- Installation:
-- install prefix: /usr
-- Options:
-- system bus service: OFF
-- session bus service: ON
--
-- Configuring incomplete, errors occurred!
See also "/home/alexey/src/cdemu/cdemu-daemon-3.0.2/CMakeFiles/CMakeOutput.log".
$

Discussion

  • Rok Mandeljc

    Rok Mandeljc - 2015-10-07

    Have you tried running cmake as regular user (without sudo)? I suspect pkg-config is not really reading your custom PKG_CONFIG_PATH.

    To illustrate, here's an example with OpenCV, which I happen to have installed in two versions (2.4.11 in /usr/lib64, and 3.0.0 in custom path):

    [rok@alpha ~]$ export PKG_CONFIG_PATH=/opt/opencv-3.0.0/lib/pkgconfig

    [rok@alpha ~]$ echo $PKG_CONFIG_PATH
    /opt/opencv-3.0.0/lib/pkgconfig
    [rok@alpha ~]$ sudo echo $PKG_CONFIG_PATH
    /opt/opencv-3.0.0/lib/pkgconfig

    [rok@alpha ~]$ pkg-config --modversion opencv
    3.0.0
    [rok@alpha ~]$ sudo pkg-config --modversion opencv
    2.4.11

    And in contrast to initial echo command:

    [rok@alpha ~]$ printenv PKG_CONFIG_PATH
    /opt/opencv-3.0.0/lib/pkgconfig
    [rok@alpha ~]$ sudo printenv PKG_CONFIG_PATH

     
    • Alexey Yaroshenko

      Thanks for answer.
      If I run "cmake .." as regular user I see next.

      $ cmake ..
      -- checking for module 'libmirage>=3.0.2'
      -- found libmirage, version 3.0.3
      CMake Error: Could not open file for write in copy operation /home/alexey/src/cdemu/cdemu-daemon-3.0.2/config.h.tmp
      CMake Error: : System Error: Permission denied
      CMake Error at CMakeLists.txt:31 (configure_file):
      configure_file Problem configuring file

      CMake Error: Could not open file for write in copy operation /home/alexey/src/cdemu/cdemu-daemon-3.0.2/session/net.sf.cdemu.CDEmuDaemon.service.tmp
      CMake Error: : System Error: Permission denied
      CMake Error at CMakeLists.txt:35 (configure_file):
      configure_file Problem configuring file

      CMake Error: Could not open file for write in copy operation /home/alexey/src/cdemu/cdemu-daemon-3.0.2/system/net.sf.cdemu.CDEmuDaemon.service.tmp
      CMake Error: : System Error: Permission denied
      CMake Error at CMakeLists.txt:39 (configure_file):
      configure_file Problem configuring file

      --
      -- *** CDEmu daemon v.3.0.2 configuration summary ***
      -- Compiler and build info:
      -- C compiler: /bin/cc
      -- C flags (Release): -O3 -DNDEBUG
      -- C flags (Debug): -g
      -- build type: Release
      -- Installation:
      -- install prefix: /usr
      -- Options:
      -- system bus service: OFF
      -- session bus service: ON
      --
      -- Configuring incomplete, errors occurred!
      See also "/home/alexey/src/cdemu/cdemu-daemon-3.0.2/CMakeFiles/CMakeOutput.log".
      CMake Error: Cannot open file for write: /home/alexey/src/cdemu/cdemu-daemon-3.0.2/CMakeCache.txt.tmp
      CMake Error: : System Error: Permission denied
      CMake Error: Unable to open cache file for save. /home/alexey/src/cdemu/cdemu-daemon-3.0.2/CMakeCache.txt
      CMake Error: : System Error: Permission denied
      $

       

      Last edit: Alexey Yaroshenko 2015-10-08
      • Rok Mandeljc

        Rok Mandeljc - 2015-10-08

        You have left-over files from your previous sudo cmake runs in your build directory, and as regular user, you do not have proper write permissions to those. Try cleaning the contents of your build directory (or remove and re-create it).

         
        • Alexey Yaroshenko

          I did it but result the same as before.

          [alexey@delllaptop cdemu-daemon-3.0.2]$ sudo rm -frdv build/
          removed directory: ‘build/’
          [alexey@delllaptop cdemu-daemon-3.0.2]$ mkdir build
          mkdir: cannot create directory ‘build’: Permission denied
          [alexey@delllaptop cdemu-daemon-3.0.2]$ sudo mkdir build
          [alexey@delllaptop cdemu-daemon-3.0.2]$ cd build/
          [alexey@delllaptop build]$ cmake ..
          -- checking for module 'libmirage>=3.0.2'
          -- found libmirage, version 3.0.3
          CMake Error: Could not open file for write in copy operation /home/alexey/src/cdemu/cdemu-daemon-3.0.2/config.h.tmp
          CMake Error: : System Error: Permission denied
          CMake Error at CMakeLists.txt:31 (configure_file):
          configure_file Problem configuring file

          CMake Error: Could not open file for write in copy operation /home/alexey/src/cdemu/cdemu-daemon-3.0.2/session/net.sf.cdemu.CDEmuDaemon.service.tmp
          CMake Error: : System Error: Permission denied
          CMake Error at CMakeLists.txt:35 (configure_file):
          configure_file Problem configuring file

          CMake Error: Could not open file for write in copy operation /home/alexey/src/cdemu/cdemu-daemon-3.0.2/system/net.sf.cdemu.CDEmuDaemon.service.tmp
          CMake Error: : System Error: Permission denied
          CMake Error at CMakeLists.txt:39 (configure_file):
          configure_file Problem configuring file

          --
          -- *** CDEmu daemon v.3.0.2 configuration summary ***
          -- Compiler and build info:
          -- C compiler: /bin/cc
          -- C flags (Release): -O3 -DNDEBUG
          -- C flags (Debug): -g
          -- build type: Release
          -- Installation:
          -- install prefix: /usr
          -- Options:
          -- system bus service: OFF
          -- session bus service: ON
          --
          -- Configuring incomplete, errors occurred!
          See also "/home/alexey/src/cdemu/cdemu-daemon-3.0.2/CMakeFiles/CMakeOutput.log".
          CMake Error: Cannot open file for write: /home/alexey/src/cdemu/cdemu-daemon-3.0.2/CMakeCache.txt.tmp
          CMake Error: : System Error: Permission denied
          CMake Error: Unable to open cache file for save. /home/alexey/src/cdemu/cdemu-daemon-3.0.2/CMakeCache.txt
          CMake Error: : System Error: Permission denied
          [alexey@delllaptop build]$

           
          • Rok Mandeljc

            Rok Mandeljc - 2015-10-08

            Results are the same because in the end, you again created the build directory via sudo:

            [alexey@delllaptop cdemu-daemon-3.0.2]$ mkdir build
            mkdir: cannot create directory ‘build’: Permission denied
            [alexey@delllaptop cdemu-daemon-3.0.2]$ sudo mkdir build

            You should fix the initial permission denied error; the problem here is that user does not have write permissions for parent directory (cdemu-daemon-3.0.2).

            My guess is you also unpacked the source via sudo, hence the unpacked directory is owned by root. Try unpacking the source again, or change the ownership of the source directory (i.e., "sudo chown -R alexey:alexey cdemu-daemon-3.0.2").

             
            • Alexey Yaroshenko

              OK. It is working. My wrong is I untar with sudo.
              Thank you.

              [alexey@delllaptop build]$ echo $PKG_CONFIG_PATH
              /usr/local/lib/pkgconfig
              [alexey@delllaptop build]$ cmake ..
              -- The C compiler identification is GNU 4.8.3
              -- Check for working C compiler: /usr/bin/cc
              -- Check for working C compiler: /usr/bin/cc -- works
              -- Detecting C compiler ABI info
              -- Detecting C compiler ABI info - done
              -- Found PkgConfig: /usr/bin/pkg-config (found suitable version "0.28", minimum required is "0.16")
              -- checking for module 'libmirage>=3.0.2'
              -- found libmirage, version 3.0.3
              -- checking for modules 'glib-2.0>=2.24;gobject-2.0>=2.24;gmodule-2.0>=2.24;gthread-2.0>=2.24;gio-2.0>=2.26'
              -- found glib-2.0, version 2.38.2
              -- found gobject-2.0, version 2.38.2
              -- found gmodule-2.0, version 2.38.2
              -- found gthread-2.0, version 2.38.2
              -- found gio-2.0, version 2.38.2
              -- checking for module 'ao>=0.8.0'
              -- found ao, version 1.1.0
              --
              -- *** CDEmu daemon v.3.0.2 configuration summary ***
              -- Compiler and build info:
              -- C compiler: /usr/bin/cc
              -- C flags (Release): -O3 -DNDEBUG
              -- C flags (Debug): -g
              -- build type:
              -- Installation:
              -- install prefix: /usr/local
              -- Options:
              -- system bus service: OFF
              -- session bus service: ON
              --
              -- Configuring done
              -- Generating done
              -- Build files have been written to: /home/alexey/src/cdemu/cdemu-daemon-3.0.2/build
              [alexey@delllaptop build]$

               
  • Rok Mandeljc

    Rok Mandeljc - 2015-10-08
    • status: open --> closed
    • Milestone: -->
     

Log in to post a comment.

MongoDB Logo MongoDB