Unix/Linux Go Back    


Gentoo Gentoo Linux is a versatile and fast, completely free Linux distribution geared towards developers and network professionals.

How do I install files in Linux?

Gentoo


Tags
linux, ubuntu

Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 10-19-2006   -   Original Discussion by hast5
hast5 hast5 is offline
Registered User
 
Join Date: Oct 2006
Last Activity: 21 December 2006, 2:17 AM EST
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
How do I install files in Linux?

Ok, I have downloadet a program frome the internet, before you ask and flame me yes I am a noob. But thats not the problem. My problem is. How do I install it so I can run it in the terminal window.

The file is .tgz and when i extract it I get a folder with lots of "c" documents and that sorts. I know the basic of programing in Windows. With that I mean the language c++, c# and VB 6.0 and .NET

But in Linux !!! I am blank. I did youst start to try to learn it. The verson I am runing is named sabayon not ubuntu as most people do. But I guess that dosent matter the way to install files are well bascliy the same right?

Thanks for all the help. And I am sorry if I have taken your time with something that was only some pice of trash.
Sponsored Links
    #2  
Old Unix and Linux 10-19-2006   -   Original Discussion by hast5
prashant_ohol prashant_ohol is offline
Registered User
 
Join Date: Sep 2006
Last Activity: 4 September 2010, 12:10 PM EDT
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Try this.


./configure
make
make install


Let me know.


Prashant,
Sponsored Links
    #3  
Old Unix and Linux 10-19-2006   -   Original Discussion by hast5
BOFH BOFH is offline Forum Advisor  
Registered User
 
Join Date: Feb 2005
Last Activity: 7 May 2012, 4:35 PM EDT
Location: Longmont, CO
Posts: 411
Thanks: 1
Thanked 5 Times in 5 Posts
For additional information, a majority of applications like that have a README file which has notes about the application and a file called INSTALL which has instructions on how to create the binary. You should make a habit of reading the README file and always read the INSTALL file in case you need to ensure other things are present or the correct switches are used for the configure script.

Carl
    #4  
Old Unix and Linux 10-19-2006   -   Original Discussion by hast5
prashant_ohol prashant_ohol is offline
Registered User
 
Join Date: Sep 2006
Last Activity: 4 September 2010, 12:10 PM EDT
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Tools

BOFH you are right Linux





Prashant,
Sponsored Links
    #5  
Old Unix and Linux 10-19-2006   -   Original Discussion by hast5
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 17 November 2017, 9:25 PM EST
Location: Saskatchewan
Posts: 22,512
Thanks: 1,151
Thanked 4,273 Times in 3,946 Posts
Windows depends on Visual Studio for development, for the most part. UNIX uses makefiles, which are kind of batch-files on steroids. The usual series of steps in compiling a program:
  • ./configure
    This file checks out your system and creates an appropriate makefile. You can give it various options on things like where to install to. See ./configure --help for details.
  • make
    This searches for a makefile in your current directory, finds it, and executes it's default target, namely the program.
  • make install
    This executes a different target, which attempts to install the given programs into the directories ./configure chose. It might not be able to if you don't have permission to write to those directories, which means you may need to run this step as root. none of the other steps need to be run as root.

But what is your distribution? Most distributions except Gentoo use archives full of binary files that've been built for you, not source files. It's best to cooperate with your distro as much as you can rather than injecting stuff under it, fight it too much and it'll fight back.
Sponsored Links
    #6  
Old Unix and Linux 10-20-2006   -   Original Discussion by hast5
hast5 hast5 is offline
Registered User
 
Join Date: Oct 2006
Last Activity: 21 December 2006, 2:17 AM EST
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for the replays. But nothing of the thing you did suggest for me did work. When I try make... It only say "Nothing to be done for ... *thefile*"
And the ./configure do it only say no such file og directory and the make install dident work. Then did it only say "Nothing to be done for ... install".

Are there some other ides?
Sponsored Links
    #7  
Old Unix and Linux 10-20-2006   -   Original Discussion by hast5
BOFH BOFH is offline Forum Advisor  
Registered User
 
Join Date: Feb 2005
Last Activity: 7 May 2012, 4:35 PM EDT
Location: Longmont, CO
Posts: 411
Thanks: 1
Thanked 5 Times in 5 Posts
What are you trying to install? Can you provide the name of the program? Older programs might require editing a makefile or config.h file to set it up for your system.

Is it a perl package? Is there a Makefile.pl in the directory? You'd have to run "perl Makefile.pl" which would build the correct makefile.

Perhaps the binary has already been created. How about if you run "make distclean"? This will remove all temporary files and the binary so you can build again.

Is there a README or INSTALL file? Docs? The problem for us is we don't have enough information. The two solutions I just noted don't quite match what you're posting as output. How about a list of the files in the main directory? Are you in the right directory when you run the ./configure command?

Carl
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Linux column(1) from util-linux-ng for Solaris? Which *.pkg to install? slashdotweenie UNIX for Advanced & Expert Users 3 11-18-2011 01:22 PM
Linux install from NIM backslash AIX 1 02-22-2007 09:52 PM
How can i install Linux???? vit8484 UNIX for Dummies Questions & Answers 3 04-05-2006 03:05 PM
i want some help@install linux A8harrying Linux 3 12-30-2003 12:16 AM
How do i install in Linux? da_gee UNIX for Dummies Questions & Answers 1 10-07-2002 08:32 PM



All times are GMT -4. The time now is 01:59 AM.