LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

Rep: Reputation: 15
Installing software and C programming Questions


Hi,

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, 03:51 PM   #2
jqcaducifer
Member
 
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, 03:59 PM   #3
sub_slack
Member
 
Registered: Jul 2003
Distribution: slackware
Posts: 56

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


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


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