LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 08: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, 08:57 AM   #2
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
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, 09:11 AM   #3
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,864
Blog Entries: 1

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

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
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, 09: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 09:31 AM.
 
Old 01-07-2013, 09:46 AM   #6
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
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, 09:47 AM   #7
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

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

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

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
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



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 08:59 AM
libbz2.so.1.0 is needed eulaersi SUSE / openSUSE 1 11-27-2008 08:22 AM
RPM dependency - libbz2.so.0 & librpm.so.0 audan Fedora 2 03-02-2006 06:21 PM
libbz2 and error while making gnome-vfs wilu Linux - Software 2 01-31-2005 01:33 PM
libbz2.so.1 what's it all about? (Linux Mandrake 7.1 -> 7.2) shassouneh Linux - General 1 04-14-2001 04:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:40 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