LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Install Cmake (Distr Centos 5) (https://www.linuxquestions.org/questions/linux-newbie-8/install-cmake-distr-centos-5-a-874117/)

Tobbe54 04-10-2011 09:19 AM

Install Cmake (Distr Centos 5)
 
I am trying to install cmake but got problem.

Have in my tmp directory this file;
cmake-2.6.4-7.el5.i386.rpm (and when use putty it is shown in red color)

When using command;
Quote:

[root@system tmp]# su -c "yum install cmake*"
I got following:
Quote:

Loading "protect-packages" plugin
base-kernels | 951 B 00:00
base-updates | 951 B 00:00
centos-updates | 951 B 00:00
centos-os | 951 B 00:00
base-supplements | 951 B 00:00
base-os | 1.1 kB 00:00
Setting up Install Process
Parsing package install arguments
Examining cmake-2.6.4-7.el5.i386.rpm: cmake - 2.6.4-7.el5.i386
Marking cmake-2.6.4-7.el5.i386.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package cmake.i386 0:2.6.4-7.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
cmake i386 2.6.4-7.el5 cmake-2.6.4-7.el5.i386.rpm 26 M

Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 26 M
Is this ok [y/N]:
I answered y and got following message;
Quote:

warning: rpmts_HdrFromFdno: Header V4 DSA signature: NOKEY, key ID 66534c2b


Public key for cmake-2.6.4-7.el5.i386.rpm is not installed
So question now,
Do I have wrong ".rpm" file or how can I get "public key"?

knudfl 04-10-2011 11:31 AM

Welcome to LQ.

Simply ..

# yum localinstall --nogpgcheck cmake-2.6.4-7.el5.i386.rpm

Or : # rpm -Uvh cmake-2.6.4-7.el5.i386.rpm

Tobbe54 04-10-2011 02:47 PM

Quote:

Originally Posted by knudfl (Post 4320077)
Welcome to LQ.

Simply ..

# yum localinstall --nogpgcheck cmake-2.6.4-7.el5.i386.rpm

Or : # rpm -Uvh cmake-2.6.4-7.el5.i386.rpm

Sorry, did not work, got following

Quote:

[root@system bin]# yum localinstall --nogpgcheck cmake-2.6.4-7el5.i386.rpm
Loading "protect-packages" plugin
Setting up Local Package Process
base-kernels | 951 B 00:00
base-updates | 951 B 00:00
centos-updates | 951 B 00:00
centos-os | 951 B 00:00
base-supplements | 951 B 00:00
base-os | 1.1 kB 00:00
Cannot open file: cmake-2.6.4-7el5.i386.rpm. Skipping.
Nothing to do
When trying the second advice I got;

Quote:

[root@system bin]# rpm -Uvh cmake-2.6.4-7el5.i386.rpm
fel: misslyckades med att öppna cmake-2.6.4-7el5.i386.rpm: Filen eller katalogen finns inte
[root@system bin]#
It is in swedish; "Failed to open "cmake..." file or map do no exist.

Maybe this rpm-file is corrupt?

Have now found other cmake;

cmake-2.6.4-5.el5.2.src.rpm and
cmake-2.6.4-5.el5.2.i386.rpm

Anyone of these you would recomend?

Tobbe54 04-10-2011 03:29 PM

Quote:

Originally Posted by Tobbe54 (Post 4320244)

Maybe this rpm-file is corrupt?

Have now found other cmake;

cmake-2.6.4-5.el5.2.src.rpm and
cmake-2.6.4-5.el5.2.i386.rpm

Anyone of these you would recomend?

Have now tried with second of the two above and same result; "Cannot open file..."

What about install with a file such as;
cmake-2.6.0-Linux-i386.tar.gz

Please advise were to put file and what command to use?

knudfl 04-10-2011 04:08 PM

Filen eller katalogen finns inte : No such file or directory.

You are simply in the wrong location. Then the first command is always: pwd.

I.e. you can't install a file hidden away in another directory without doing
"the second command" : cd <path-to-where-I-have-the-file>/

The terminal opens in /home/<user-name>/ (usually.) If the "target" is in Download/ ,
then : cd Download/ , if it's on the Desktop : cd Desktop/

Now you can do # <install-command>

Tobbe54 04-10-2011 04:52 PM

OK, I saw now I stood in bin directory when trying.

the RPM file is in tmp-directory

Changed and now got following;
Quote:

[root@system tmp]# yum localinstall --nogpgcheck cmake-2.6.4-7el5.i386.rpm
Loading "protect-packages" plugin
Setting up Local Package Process
Cannot open file: cmake-2.6.4-7el5.i386.rpm. Skipping.
Nothing to do
Can it be something wrong with the file?

Also would like to have
libusb
libssl
libssl-dev

Any suggestion were to find?

knudfl 04-10-2011 05:57 PM

Generally : CentOS 5.6 packages are here
http://mirror.centos.org/centos/5.6/os/i386/CentOS/
Updates : http://mirror.centos.org/centos/5.6/updates/i386/RPMS/

EPEL, Extra Packges for Enterprise Linux
http://download.fedora.redhat.com/pub/epel/5/i386/
The EPEL cmake-2.6.4-5.el5.2.i386.rpm :
http://download.fedora.redhat.com/pu...el5.2.i386.rpm

The cmake-2.6.4-7el5.i386.rpm you got, is an ATrpms package. (A corrupt package?)
Not necessarily recommended. I don't use any "ATrpms".

"cmake-2.6.4-5.el5.2.i386.rpm" is the CentOS system package.
The cmake-2.6.4-5.el5.2.src.rpm is source code, hence SRC.


May be you don't have an i386 OS = 32 bits ? The command 'uname -a' will show.

64bits, x86_64 http://mirror.centos.org/centos/5.6/os/x86_64/CentOS/
Updates 64bits http://mirror.centos.org/centos/5.6/...s/x86_64/RPMS/
EPEL 64bits http://download.fedora.redhat.com/pub/epel/5/x86_64/
→ cmake-2.6.4-5.el5.2.x86_64.rpm

Tobbe54 04-11-2011 04:28 PM

Quote:

May be you don't have an i386 OS = 32 bits ? The command 'uname -a' will show.
This is the result of "uname -a"

Linux system.clarkconnect.lan 2.6.18-128.2.16.v5 #1 SMP Mon Jul 6 11:29:03 EDT 2009 i686 i686 i386 GNU/Linux

I asume it is 32-bit?


Now I have tested once more, this is the result;

Quote:

[root@system tmp]# yum localinstall --nogpgcheck cmake-2.6.4-5.el5.2.i386.rpm
Loading "protect-packages" plugin
Setting up Local Package Process
base-kernels | 951 B 00:00
base-updates | 951 B 00:00
centos-updates | 951 B 00:00
centos-os | 951 B 00:00
base-supplements | 951 B 00:00
base-os | 1.1 kB 00:00
Examining cmake-2.6.4-5.el5.2.i386.rpm: cmake - 2.6.4-5.el5.2.i386
Marking cmake-2.6.4-5.el5.2.i386.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package cmake.i386 0:2.6.4-5.el5.2 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
cmake i386 2.6.4-5.el5.2 cmake-2.6.4-5.el5.2.i386.rpm 19 M

Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 19 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: cmake ######################### [1/1]

Installed: cmake.i386 0:2.6.4-5.el5.2
Complete!
YEES!! It worked now! Or? How would I test this funktion?

Thanks a lot "knudfl" for your helping advises!

knudfl 04-11-2011 04:40 PM

Yes, "i686 i686 i386" is 32bits.

Best choice is then the EPEL package cmake-2.6.4-5.el5.2.i386.rpm

Tobbe54 04-11-2011 04:51 PM

And now to next problem, or do I keep on as for cmake?

Quote:

Also would like to have
libusb (this I found; libusb-0.1.12-5.1.i386.rpm and "devel" libusb-devel-0.1.12-5.1.i386.rpm
libssl
libssl-dev

Any suggestion were to find?

John VV 04-11-2011 05:55 PM

why is it people tend to make a very simple thing very complicated

it is best and RECOMMENDED to install programs using "yum"
a local install using rpm will NOT add it to the list of installed program in the OS database and therefor will NOT be listed as installed .The OS will NOT know about it .

If you are going to use the ATrpm repo - then you ONLY use atrpm - it is incompatible with the rest

set up and use the cent extras and RPMForge
see the Wiki:
http://wiki.centos.org/AdditionalResources/Repositories
now VERY important install AND USE "yum-Priorities" plugin
AND set it's values ??
cent.reop set to 1
cent-update set to 1
cent-extras set to 2
RPMForge set to 3
adobe.repo set to 4

the lower the number the HIGHER the Priority

not everything is 100% compatible so READ and FALLOW all warnings !

these will be added as dependencies
libusb
libssl
libssl-dev
to the command
Code:

su -
yum install cmake

if needed
this will be done AUTOMATICALLY if needed .

Tobbe54 04-25-2011 12:55 PM

Quote:

Originally Posted by John VV (Post 4321534)
why is it people tend to make a very simple thing very complicated

it is best and RECOMMENDED to install programs using "yum"
a local install using rpm will NOT add it to the list of installed program in the OS database and therefor will NOT be listed as installed .The OS will NOT know about it .

Thanks for your answer, as newbee on Linux it is very much I don't know about.

Typical when learning some new, the more info you get, more questions you have...
Now I have more questions.

I have looked into http://wiki.centos.org/AdditionalResources/Repositories and also installed
rpmforge-release-0.5.2-2.el5.rf.i386.rpm

But then I don't understand how to
Quote:

install AND USE "yum-Priorities" plugin
and also how to
Quote:

set it's values
Were to find the "files" you mentioned (cent.reop, cent-update, cent-extras, RPMForge,adobe.repo)

When I used your command in the end I got:
Quote:

[root@system ~]# su -
[root@system ~]# yum install cmake
Loading "protect-packages" plugin
base-kernels | 951 B 00:00
base-updates | 951 B 00:00
centos-updates | 951 B 00:00
primary.xml.gz | 63 kB 00:00
centos-upd: ################################################## 204/204
centos-os | 951 B 00:00
primary.xml.gz | 779 kB 00:02
centos-os : ################################################## 2660/2660
base-supplements | 951 B 00:00
base-os | 1.1 kB 00:00
Setting up Install Process
Parsing package install arguments
Requested dep: cmake is provided by installed package
Nothing to do
Does this means it is working OK?

And what I need most now is to get libusb to work?

knudfl 04-26-2011 05:13 AM

rpm -qa cmake : Will show the installed 'cmake' package.


rpm -qa | grep libusb : To know, if you remembered to install 'libusb-devel'

Tobbe54 04-26-2011 01:37 PM

Quote:

Originally Posted by knudfl (Post 4336585)
rpm -qa cmake : Will show the installed 'cmake' package.

This I got;
Code:

[root@system ~]# rpm -qa cmake
cmake-2.6.4-5.el5.2

Looks OK?

But then: What command/button to use for the vertical line between -qa and grep
Quote:

-qa | grep
rpm -qa | grep libusb :

I wrote:
Code:

rpm -qa libusb
And got;
Code:

libusb-0.1.12-5.1
Seems to be installed, but when I do the cmake the system don't "feel" libusb, looks like this;

Code:

[root@system build]# cmake .WEBIF=1 ..
--  pthread found. Adding pthread support
--  librt found (needed by libusb).
--  no libusb 1.0 found. No smartreader support
--
--  operating system: Linux
--  system type: i686-pc-linux
--  system: linux
--  cpu: i686
--  hw: pc
--  use system aes functions
--  use system sha functions
--  use system pthread functions
--  web interface enabled
--
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/src/oscama/oscam-svn/build

Maybe the libusb-devel is not working?
This is what I get;
Code:

[root@system tmp]# yum install libusb-devel-0.1.12-5.1.i386.rpm
Loading "protect-packages" plugin
Setting up Install Process
Parsing package install arguments
Examining libusb-devel-0.1.12-5.1.i386.rpm: libusb-devel - 0.1.12-5.1.i386
libusb-devel-0.1.12-5.1.i386.rpm: does not update installed package.
Nothing to do

I was worried when I received "John VV";s answer;
Quote:

it is best and RECOMMENDED to install programs using "yum"
a local install using rpm will NOT add it to the list of installed program in the OS database and therefor will NOT be listed as installed .The OS will NOT know about it .

If you are going to use the ATrpm repo - then you ONLY use atrpm - it is incompatible with the rest
But what about the two above rpm;s are they dangerous? Not working? Also what about that "The OS will not know about it"?

John VV 04-26-2011 02:05 PM

you ran configure
did you build the program ????????
Quote:

Build files have been written to: /usr/src/oscama/oscam-svn/build
DID YOU run " make" ?????
i see NO evidence that you tried ?
there is NO error?
no nothing !


All times are GMT -5. The time now is 04:27 PM.