error at installing

Help
hanpedro
2012-03-29
2012-09-16
  • hanpedro
    hanpedro
    2012-03-29

    I tried to install kvpm at scientific linux 6.2 x64, and got this errors.

    Built target kvpm_automoc

    Scanning dependencies of target kvpm

    Building CXX object kvpm/CMakeFiles/kvpm.dir/kvpm_automoc.o

    In file included from /_work/kvpm-0.8.6/kvpm/moc_storagedevice.cpp:10,

    from /_work/kvpm-0.8.6/kvpm/kvpm_automoc.cpp:11:

    /_work/kvpm-0.8.6/kvpm/storagedevice.h:22:27: error: parted/parted.h: No such
    file or directory

    In file included from /_work/kvpm-0.8.6/kvpm/moc_masterlist.cpp:10,

    from /_work/kvpm-0.8.6/kvpm/kvpm_automoc.cpp:20:

    /_work/kvpm-0.8.6/kvpm/masterlist.h:18:21: error: lvm2app.h: No such file or
    directory

    In file included from /_work/kvpm-0.8.6/kvpm/moc_storagedevice.cpp:10,

    from /_work/kvpm-0.8.6/kvpm/kvpm_automoc.cpp:11:

    /_work/kvpm-0.8.6/kvpm/storagedevice.h:47: error: expected ‘)’ before ‘*’
    token

    In file included from /_work/kvpm-0.8.6/kvpm/moc_masterlist.cpp:10,

    from /_work/kvpm-0.8.6/kvpm/kvpm_automoc.cpp:20:

    /_work/kvpm-0.8.6/kvpm/masterlist.h:39: error: ‘lvm_t’ does not name a type

    /_work/kvpm-0.8.6/kvpm/masterlist.h:48: error: ‘lvm_t’ does not name a type

    In file included from /_work/kvpm-0.8.6/kvpm/moc_partadd.cpp:10,

    from /_work/kvpm-0.8.6/kvpm/kvpm_automoc.cpp:23:

    /_work/kvpm-0.8.6/kvpm/partadd.h:42: error: ISO C++ forbids declaration of
    ‘PedConstraint’ with no type

    /_work/kvpm-0.8.6/kvpm/partadd.h:42: error: expected ‘;’ before ‘*’ token

    /_work/kvpm-0.8.6/kvpm/partadd.h:47: error: ‘PedSector’ does not name a type

    /_work/kvpm-0.8.6/kvpm/partadd.h:63: error: ‘PedSector’ has not been declared

    /_work/kvpm-0.8.6/kvpm/partadd.h:63: error: ‘PedSector’ has not been declared

    /_work/kvpm-0.8.6/kvpm/partadd.h:63: error: ‘PedSector’ has not been declared

    In file included from /_work/kvpm-0.8.6/kvpm/moc_partchange.cpp:10,

    from /_work/kvpm-0.8.6/kvpm/kvpm_automoc.cpp:49:

    /_work/kvpm-0.8.6/kvpm/partchange.h:45: error: ISO C++ forbids declaration of
    ‘PedDisk’ with no type

    /_work/kvpm-0.8.6/kvpm/partchange.h:45: error: expected ‘;’ before ‘*’ token

    /_work/kvpm-0.8.6/kvpm/partchange.h:46: error: ISO C++ forbids declaration of
    ‘PedPartition’ with no type

    /_work/kvpm-0.8.6/kvpm/partchange.h:46: error: expected ‘;’ before ‘*’ token

    /_work/kvpm-0.8.6/kvpm/partchange.h:51: error: ‘PedSector’ does not name a
    type

    /_work/kvpm-0.8.6/kvpm/partchange.h:73: error: ‘PedDisk’ has not been declared

    /_work/kvpm-0.8.6/kvpm/partchange.h:78: error: ‘PedSector’ has not been
    declared

    /_work/kvpm-0.8.6/kvpm/partchange.h:78: error: ‘PedSector’ has not been
    declared

    /_work/kvpm-0.8.6/kvpm/partchange.h:78: error: ‘PedSector’ has not been
    declared

    make: *** Error 1

    make: *** Error 2

    make: *** Error 2

     
  • Those errors are saying that either libparted and liblvm2app header files are
    not installed or that the compiler cant find them. Are you sure parted.h and
    liblvm2app.h have been installed on you system? I am not sure about Scientific
    Linux but with Debian the headers are part of a separate package than the
    library, called a development package. For example libparted (the library) is
    one package and libparted-dev (the header) is another package. Both are needed
    to compile the program but only the library and not the header is needed to
    run the program.

     
  • hanpedro
    hanpedro
    2012-03-31

    I tried to install libparted and liblvm2app with yum command, but got this
    error.

    yum list libparted liblvm2app

    Loaded plugins: fastestmirror, priorities, refresh-packagekit, security

    Loading mirror speeds from cached hostfile

    • epel: ftp.riken.jp
    • rpmforge: fr2.rpmfind.net
    • sl: ftp.scientificlinux.org
    • sl-security: ftp.scientificlinux.org
      112 packages excluded due to repository priority protections

    Error: No matching Packages to list

     
  • hanpedro
    hanpedro
    2012-03-31

    Anyway after installing libparted-dev and lvm2-devel, then this errors came.

    make

    Built target kvpm_automoc

    Building CXX object kvpm/CMakeFiles/kvpm.dir/kvpm_automoc.o

    Building CXX object kvpm/CMakeFiles/kvpm.dir/changemirror.o

    Building CXX object kvpm/CMakeFiles/kvpm.dir/kvpmconfigdialog.o

    Building CXX object kvpm/CMakeFiles/kvpm.dir/deviceproperties.o

    Building CXX object kvpm/CMakeFiles/kvpm.dir/devicepropertiesstack.o

    Building CXX object kvpm/CMakeFiles/kvpm.dir/devicesizechart.o

    Building CXX object kvpm/CMakeFiles/kvpm.dir/devicesizechartseg.o

    Building CXX object kvpm/CMakeFiles/kvpm.dir/devicetree.o

    /_work/kvpm-0.8.6/kvpm/devicetree.cpp: In member function ‘void
    DeviceTree::loadData(QList)’:

    /_work/kvpm-0.8.6/kvpm/devicetree.cpp:92: error: ‘class KLocale’ has no member
    named ‘setBinaryUnitDialect’

    /_work/kvpm-0.8.6/kvpm/devicetree.cpp:92: error: ‘MetricBinaryDialect’ is not
    a member of ‘KLocale’

    /_work/kvpm-0.8.6/kvpm/devicetree.cpp:94: error: ‘class KLocale’ has no member
    named ‘setBinaryUnitDialect’

    /_work/kvpm-0.8.6/kvpm/devicetree.cpp:94: error: ‘IECBinaryDialect’ is not a
    member of ‘KLocale’

    make: *** Error 1

    make: *** Error 2

    make: *** Error 2

     
  • hanpedro
    hanpedro
    2012-04-02

    And at this time this error comes.

    CMake Error at CMakeLists.txt:27 (kde4_add_executable):

    Unknown CMake command "kde4_add_executable".

     
  • At the kde help, it shows "KDE 4.3.4"

    I looked up the function that is causing the error, setBinaryUnitDialect(),
    and it was added in version 4.4.0. It won't compile on 4.3.4 because it is too
    old. I'm sorry it didn't work, I will add a note in the README file about
    that.

     
  • Unfortuatelly, I could not find how to upgrade 4.3.4 to 4.4.0.

    yum update

    yum groupupdate kde-desktop

    does not work.

     


Anonymous


Cancel   Add attachments