Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-04-2003, 01:29 PM   #1
Registered: Feb 2003
Distribution: Redhat
Posts: 30

Rep: Reputation: 15
Installing software and C programming Questions


I will like to know more about installing software in linux. In what way is it different from windows? ( In windows, it's just point and click). For linux, there seems to be no such easy way. What are the methods for installing software for linux? I have heard that there is rpm and those tar files. What are the general steps a user should do with them in order to install the software in linux?

Next, its about C programming in linux. I use the gnome text editor to create the text file and then save it to disk. Then at the command line, i typed 'gcc - ansi hello.c -o hello ' where hello is the program name. The compilation seemed to go fine. However when i attempted to run the program by typing hello or hello.c at the command prompt, there is always a message saying file not found. May I know why this happens? I followed the steps in my notes exactly but it cant run. Btw, my notes are written for Unix HP workstations but i guess they can be used in linux as well.

Please reply.....thanks!
Old 08-04-2003, 02:51 PM   #2
Registered: Jul 2003
Distribution: Fedora 3
Posts: 133

Rep: Reputation: 15
To install software, you can either use the rpm command on .rpm files, or compile, using the make command, the source code, following the directions in the INSTALL or README files. I personally like compiling myself, because rpm is stupid on my computer and doesn't like to work. Source code usually comes in the form of *.tar.bz2, or *.tar.gz, either zipped with bzip or gzip. uncompress *.tar.bz2 with tar -xzvf "filename" and .gz with tar -xjvf "filename"

As for making programs run, use chmod ugoa+x "filename" to give everyone executable permissions. then run
Old 08-04-2003, 02:59 PM   #3
Registered: Jul 2003
Distribution: slackware
Posts: 56

Rep: Reputation: 15
to run a program that you compiled use :


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
questions about programming... efm Programming 12 11-29-2005 01:58 PM
2 programming questions hk_michael Programming 4 02-01-2005 12:02 AM
Questions about installing software Xeys_00 Linux - Newbie 4 05-16-2004 03:54 PM
programming questions eboats Linux - General 19 10-22-2001 05:15 PM
programming questions eboats Programming 4 10-17-2001 02:15 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration