LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-03-2015, 09:43 AM   #1
dadadoodads
LQ Newbie
 
Registered: Mar 2013
Posts: 13

Rep: Reputation: Disabled
Smile Obtaining Required Software or Dependencies?


So, when I use Synaptic or the Lubuntu Software Center, it obviously finds all these required packages for me...

But right now I'm trying to install a program called rarcrack that I got from SourceForge. It says I needs these things:

> glibc 2.4
any POSIX compatible operating system [sorry Window$ isn't]
pthreads
libxml2
and finally: 7zip, unrar, unzip

I don't think I have some of that stuff. I'm trying to compile the program. I enter a "make" command and it automatically enters a GCC string and then tells me that it doesn't have xml2-config in some /bin/ directory or other

So basically, where do I get this stuff. I've searched synaptic for them, and it doesn't seem to know what they are.

Maybe one of you guys can tell me!
 
Old 03-03-2015, 09:50 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,492

Rep: Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093
I find it very surprising that Synaptic doesn't know what those are...

Open up a terminal and use apt-cache search, eg:
Code:
apt-cache search libxml2
It should spit out the relevant package names, of which there should be many. The ones you're interested in are libxml2 and libxml2-dev. Same goes for libpthread, 7zip, unrar, and unzip.

You can install a package with apt-get, eg:
Code:
sudo apt-get install libxml2 libxml2-dev
 
Old 03-03-2015, 10:16 AM   #3
dadadoodads
LQ Newbie
 
Registered: Mar 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled
Okay so it did do a lot of that, thanks.

I didn't realize the package I was looking for was called libpthread either; I lietally searched for "pthreads"

I appreciate your help. I wonder if I could just pose my other problem here as opposed to posting another thread: the instruction in the rarcrack readme instruct me to, after using the make command, which I did (I think successfully this time, although I'm not really certain) to do a "make install" commandm, which I apparently need to enter as root to have permission. How do I do that?

I hope my not knowing this is not horribly obnoxious but I'd appareciate help haha.

P.S. (Are the "make" and "make install" commands I'm using commands that... the programmer of this script redied to enter commands in GCC most likely? I didn't realize you oculd compile a C script just by typing make and make install)

P.S.S The reason I'm going about this this way instead of just finding rarcrack with a sudo apt-get install command is... I edited the source to change an fopen to an fopen64 -- because I read in another thread that this would a fix a bug with this program that I'm having. This is my first time trying to edit one of these programs and needless to say the only c program I ever compiled was HelloWorld.c

Thanks
 
Old 03-03-2015, 10:29 AM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,492

Rep: Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093
Since you're apparently in Ubuntu or one of its spinoffs, stick a "sudo" in front of it to run the command as root.

Here's some documentation on make:
http://tldp.org/HOWTO/Software-Building-HOWTO-3.html

In short, the "make" command runs the Makefile script which should be located in your terminal's working directory, and has been pre-configured to build that particular software package. It can include different build targets, as well as file moving/linking in addition to just compiling. You can kind of think of "make" like a scripting language that's designed for software building.
 
Old 03-03-2015, 10:36 AM   #5
dadadoodads
LQ Newbie
 
Registered: Mar 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled
Yeah I opened the makefile and I see what it's doing.

And so yes, thank you, I did get the program installed. Unfortunately, the changes I made to it didn't solve my problem as another user suggested. Thanks anyway.

To clarify, is this sudo command I'm always using just a way of saying, "do the following as root"?
 
Old 03-03-2015, 10:37 AM   #6
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,480

Rep: Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403
You don't need to compile it: it's in the Ubuntu Universe repository.
 
Old 03-03-2015, 10:53 AM   #7
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,492

Rep: Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093
Quote:
Originally Posted by dadadoodads View Post
To clarify, is this sudo command I'm always using just a way of saying, "do the following as root"?
Yeah, pretty much.

It stands for "substitute user and do". If you don't specify the user name to use (eg: sudo -u larry), it defaults to root.
 
Old 03-03-2015, 10:59 AM   #8
dadadoodads
LQ Newbie
 
Registered: Mar 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled
Hm, I wouldn't need to compile it if I edited the the script and wanted to use the edited version, even?

To be honest, I'm not sure what a universe repository is. Or a multiverse repository. I see them in synaptic, but I don't really know what those terms refer to.

Repositories are just... programs I can sudo apt-get install or find on synaptic and ubuntu will know where they are on its server and download them to my computer, right?

I knew that I could install it that way. I just wanted to edit it.

See, rarcrack won't recognize a file over 2 GB (according to another thread) -- I downloaded a file that came with a readme that said, "PLX GO TO OUR SPAMMY WEBSITE AND DO A SURVEY TO GET THE PW" and of course I was like f that. I wanted to try cracking it with rarcrack, but it says that there is no file or permissions denied. Permissions were Read and Write, user as owner. correct file name. It's there.

Another thread said the guy edited the source to get it to recognize files over 2GB and I wanted to try. Whatever I did didn't work. It's highly possible I didn't do it right, but whatever. I tried.

I tossed the locked archive out so it's irrelevant now.
 
  


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
creating rpm to install also dependencies files required. jayasekar Linux - Software 1 12-03-2009 05:49 AM
How do I update/download required dependencies? Shadowvar8541 Linux - Newbie 5 07-21-2009 12:26 AM
What are the best sites for obtaining software for Net Book with Linux Lite? schivers Linux - Newbie 3 12-15-2008 09:09 AM
Software issues - Dependencies tnbk00 Linux - Software 7 01-11-2006 06:07 PM
I recieve a failed dependencies error, but I have all required dependencies Laptop2250 Linux - Software 15 02-03-2004 07:58 PM


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