LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 01-07-2013, 09:54 AM   #1
kalidha
LQ Newbie
 
Registered: Jan 2013
Posts: 7

Rep: Reputation: Disabled
install libbz2


Hi,
I am trying to install apt-get on CentOS.
And I get this error :

configure : error : Can't find libbz2 library.

help me !
Thanks
 
Old 01-07-2013, 09:57 AM   #2
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,430

Rep: Reputation: 339Reputation: 339Reputation: 339Reputation: 339
My advice will be to use Debian if you want to use apt-get. It is already reconfigured to work out of the box and it does a really nice job.

Good luck to you.
 
Old 01-07-2013, 10:11 AM   #3
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,946

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
install bzip2 first. source: http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz
 
Old 01-07-2013, 10:19 AM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,098

Rep: Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719
Quote:
Originally Posted by kalidha View Post
Hi,
I am trying to install apt-get on CentOS. And I get this error:

configure : error : Can't find libbz2 library.
Yum is the 'standard' on CentOS...is there a reason you installed/want to use apt-get, instead of the built-in yum? You should just be able to type in "yum install libbz2"...
 
Old 01-07-2013, 10:25 AM   #5
kalidha
LQ Newbie
 
Registered: Jan 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
If I give "yum install libbz2" it says "No libbz2 package available".
Actually for my project I need to install EMOTIVE on CentOS.
Every command is with "apt-get".
If I replace "apt-get" with "yum" it says "No package available"

Last edited by kalidha; 01-07-2013 at 10:31 AM.
 
Old 01-07-2013, 10:46 AM   #6
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963
You are assuming that the package names are the same across distros, this isn't always true. Installing apt won't fix this issue. You need to find the equivalent package names for CentOS.
 
Old 01-07-2013, 10:47 AM   #7
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963
IIRC bzip2-libs is the equivalent package to the Debian/Ubuntu libbz2.
 
Old 01-07-2013, 10:51 AM   #8
kalidha
LQ Newbie
 
Registered: Jan 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks a lot!!
 
Old 01-07-2013, 10:56 AM   #9
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963
Use the yum search command with variants of a package's name. If you get some interesting, possible results then use the yum info command to get a little detail.

Another way to approach this would be to know one of the files within the package. Then you could search with yum provides instead. Spend some time with the yum man page and you will get an idea about the types of things you can do.
 
1 members found this post helpful.
  


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
Cannot --enable-pcregrep-libbz2 because bzlib.h was not found nitishdola Linux - Newbie 1 12-20-2012 09:59 AM
libbz2.so.1.0 is needed eulaersi Suse/Novell 1 11-27-2008 09:22 AM
RPM dependency - libbz2.so.0 & librpm.so.0 audan Fedora 2 03-02-2006 07:21 PM
libbz2 and error while making gnome-vfs wilu Linux - Software 2 01-31-2005 02:33 PM
libbz2.so.1 what's it all about? (Linux Mandrake 7.1 -> 7.2) shassouneh Linux - General 1 04-14-2001 05:24 PM


All times are GMT -5. The time now is 07:20 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration