LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-10-2011, 10:19 AM   #1
Tobbe54
LQ Newbie
 
Registered: Apr 2011
Posts: 9

Rep: Reputation: 0
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"?

Last edited by Tobbe54; 04-10-2011 at 10:21 AM.
 
Old 04-10-2011, 12:31 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
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
 
Old 04-10-2011, 03:47 PM   #3
Tobbe54
LQ Newbie
 
Registered: Apr 2011
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
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?

Last edited by Tobbe54; 04-10-2011 at 04:10 PM. Reason: More info..
 
Old 04-10-2011, 04:29 PM   #4
Tobbe54
LQ Newbie
 
Registered: Apr 2011
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tobbe54 View Post

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?
 
Old 04-10-2011, 05:08 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
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>
 
Old 04-10-2011, 05:52 PM   #6
Tobbe54
LQ Newbie
 
Registered: Apr 2011
Posts: 9

Original Poster
Rep: Reputation: 0
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?
 
Old 04-10-2011, 06:57 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
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
 
1 members found this post helpful.
Old 04-11-2011, 05:28 PM   #8
Tobbe54
LQ Newbie
 
Registered: Apr 2011
Posts: 9

Original Poster
Rep: Reputation: 0
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!

Last edited by Tobbe54; 04-11-2011 at 05:41 PM. Reason: Succeded!
 
Old 04-11-2011, 05:40 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Yes, "i686 i686 i386" is 32bits.

Best choice is then the EPEL package cmake-2.6.4-5.el5.2.i386.rpm
 
1 members found this post helpful.
Old 04-11-2011, 05:51 PM   #10
Tobbe54
LQ Newbie
 
Registered: Apr 2011
Posts: 9

Original Poster
Rep: Reputation: 0
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?
 
Old 04-11-2011, 06:55 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
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 .
 
1 members found this post helpful.
Old 04-25-2011, 01:55 PM   #12
Tobbe54
LQ Newbie
 
Registered: Apr 2011
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by John VV View Post
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?

Last edited by Tobbe54; 04-25-2011 at 02:02 PM.
 
Old 04-26-2011, 06:13 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

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


rpm -qa | grep libusb : To know, if you remembered to install 'libusb-devel'
 
Old 04-26-2011, 02:37 PM   #14
Tobbe54
LQ Newbie
 
Registered: Apr 2011
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
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"?
 
Old 04-26-2011, 03:05 PM   #15
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
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 !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cmake: Using find_package(Boost) when FindBoost.cmake is not in the default location damien_d Programming 3 10-27-2010 04:40 PM
LXer: What Is And How To Install Swiftfox Web Browser in Ubuntu and Other Linux Distr LXer Syndicated Linux News 0 07-05-2009 04:41 PM
CMake is new territory for me - Trying to install kdebluetooth4 BobNutfield Slackware 12 06-16-2009 07:20 PM
What distr to install on a iPack hx4705 Pocket PC? vhm2k Linux - Laptop and Netbook 1 03-31-2008 06:17 PM
Lycoris (Redmond) distr.?? Install quest. Frost Linux - Distributions 3 05-03-2002 07:54 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration