LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-24-2011, 04:16 AM   #1
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Rep: Reputation: 30
not installing? repo?


I am trying to install
iftop
openvpn
rkhunter

they all say package not available.
Any ideas what I need to enable? It looks like the centosplus repo is enabled so shouldn't it find these?
 
Old 08-24-2011, 04:22 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
openvpn should be available from RPMForge, iftop and rkhunter are provided by the EPEL repository. I checked on a CentOS 6 machine, not sure about CentOS 5. Both these repositories are mentioned in the CentOS wiki.
 
Old 08-24-2011, 04:23 AM   #3
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by colucix View Post
openvpn should be available from RPMForge, iftop and rkhunter are provided by the EPEL repository. I checked on a CentOS 6 machine, not sure about CentOS 5. Both these repositories are mentioned in the CentOS wiki.
How do I add RPMForge and EPEL to the yum process?

Also, openvpn won't install as I am missing the lzo-devel

Last edited by qwertyjjj; 08-24-2011 at 04:26 AM.
 
Old 08-24-2011, 04:26 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
There are links to the instructions in the wiki page I mentioned. Basically you have to download and install the proper RPM provided by the repository and import the GPG key to make yum trust the signed packages you want to install.
 
Old 08-24-2011, 04:27 AM   #5
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by colucix View Post
There are links to the instructions in the wiki page I mentioned. Basically you have to download and install the proper RPM provided by the repository and import the GPG key to make yum trust the signed packages you want to install.


Ok, I have EPEL.
I seem to be missing the lzo-devel for openvpn
 
Old 08-24-2011, 04:28 AM   #6
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
hmm openvpn install error?
IGNORE, I installed C

Code:
[root@vps8259 ~]# rpmbuild -tb openvpn-2.2.1.tar.gz
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.60395
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf openvpn-2.2.1
+ /bin/gzip -dc /root/openvpn-2.2.1.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd openvpn-2.2.1
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.60395
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd openvpn-2.2.1
+ CFLAGS='-O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'
+ export FFLAGS
+ ./configure --host=i686-redhat-linux-gnu --build=i686-redhat-linux-gnu --target=i386-redhat-linux --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for ifconfig... /sbin/ifconfig
checking for ip... /sbin/ip
checking for route... /sbin/route
checking for netstat... /bin/netstat
checking for i686-redhat-linux-gnu-gcc... no
checking for gcc... no
checking for i686-redhat-linux-gnu-cc... no
checking for cc... no
checking for i686-redhat-linux-gnu-cl.exe... no
checking for cl.exe... no
configure: error: in `/usr/src/redhat/BUILD/openvpn-2.2.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
error: Bad exit status from /var/tmp/rpm-tmp.60395 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.60395 (%build)
[root@vps8259 ~]#

Last edited by qwertyjjj; 08-24-2011 at 04:31 AM.
 
Old 08-24-2011, 04:30 AM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
lzo-devel is provided by the CentOS base repository. If you still don't have set-up the RPMForge repo, where are you trying to install openvpn from?
 
Old 08-24-2011, 04:35 AM   #8
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Ok. Your last post already answers my question. I'd suggest to install the binary release from RPMForge to spare you a headache. Anyway, the compilation process cannot find gcc or any other suitable C compiler:
Code:
configure: error: in `/usr/src/redhat/BUILD/openvpn-2.2.1':
configure: error: no acceptable C compiler found in $PATH
This means you did not install it, since usually compilers and development software is not installed by default for security reasons. You can install all the basic stuff using:
Code:
yum groupinstall "Development Tools"
but again you don't really need them if you succeed in installing the binary package. Here are the installation instruction of the RPMForge repo: http://wiki.centos.org/AdditionalRes...ories/RPMForge

Last edited by colucix; 08-24-2011 at 04:36 AM.
 
Old 08-24-2011, 04:41 AM   #9
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
I installed openvpn using this (obviously changed the version numbers, etc):
Code:
RPM file:

    rpmbuild -tb openvpn-[version].tar.gz

Once you have the .rpm file, you can install it with the usual

    rpm -ivh openvpn-[details].rpm
Is that it, it is now installed or do I have to do any extra (ignoring the config processes)?

Last edited by qwertyjjj; 08-24-2011 at 04:47 AM.
 
Old 08-24-2011, 06:46 AM   #10
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by qwertyjjj View Post
Is that it, it is now installed or do I have to do any extra (ignoring the config processes)?
The first command builds the binary package from the source code. The second one installs it on your system. If the first process aborted with errors, I doubt you succeeded in installing it. Anyway, what's wrong with the RPMForge repository? I checked and they provide the openvpn package since Red Hat 7.3 release.
 
  


Reply



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
Best way to automate copying of Git repo to subversion repo? jceipek Linux - Server 0 03-15-2011 02:42 AM
Problem with installing from local repo TheB2B Linux - Software 2 09-19-2010 12:24 PM
Installing RPMs without repo? FlipHDK Linux - Newbie 3 12-06-2006 12:19 PM
how to use syanptic in fc 5 and how to add repo in it and which repo is to be added.. vikas04522 Linux - Software 1 08-26-2006 12:29 PM
adding mirror to yum.repo.d/<any-repo> ashwin_cse Fedora 1 03-10-2005 03:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:12 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
Open Source Consulting | Domain Registration