|
-
December 15th, 2000, 01:43 PM
#1
how to install a program?
i`m starting to feel the itch for trying some programs on my small linux box. my distribution doesn´t include a c compiler whatsoever, and my question is:
is there a way to install a program without having a c compiler?
do i have to use binaries only?
is that so?
do please excuse me if the question sounds stupid, but i still don`t completely grab the concept behind the process of installing a program in linux.
thanks in advance.
-
December 15th, 2000, 02:29 PM
#2
There are a several ways of installing programs into Linux. Redhat uses rpm to load rpm binaries. Debian uses apt-get and dpkg to install .deb binaries. There are binaries that are tar/gzip'd or tar/bzip'd. Then finally there are source tar/gzip'd files that require that you compile them. Since you're running on a system with limited disk space, you'll have to be real careful on what packages you decide to install. Become real friendly with the command 'df -k'.
------------------
If it ain't broke, fix it till it is.
If it ain't broke,
Fix it till it is.
-
December 15th, 2000, 03:19 PM
#3
ok, but in order to run an install, not an rpm one, do i need to have a compiler?
if i get a compressed binarie, once that i decompress it, all i have to do is `conf`,`make`, and `make install`, and, even if i don`t have a compiler the program will install? am i wrong?
sorry if i`m a bit insistent, thanks.
-
December 15th, 2000, 03:40 PM
#4
Again, that depends. If it is a binary that is tar'd and gzip'd, then there wiil be some sort of installation shell script. As an example, it you download the XFree86 4 binary, the installation script is Xinstall.sh. Running this as 'sh Xinstall.sh' will install the the program, similar to rpm.
If it is a source distribution, then you have to follow the course you described, `configure`, `make`, and `make install`, requiring the GNU's C/C++ compiler. Running 'configure' builds the Makefile required for compiling. 'make' compiles the source into executables and libs. 'make install' installs the compiled binary and libs, headers and man pages. -mk
------------------
If it ain't broke, fix it till it is.
If it ain't broke,
Fix it till it is.
-
December 15th, 2000, 05:26 PM
#5
thanks a lot, don`t ask me why, i was sure that i needed a compiler to install any program at all...
thanks again, i`ll keep the `df -k` under my pillow... ;->
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|