LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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


Closed Thread
  Search this Thread
Old 01-17-2006, 01:41 AM   #1
qckdrw777
LQ Newbie
 
Registered: Jan 2006
Posts: 8

Rep: Reputation: 0
how to program with suse linux version 10.0


i am really new to linux and want to eventually learn how to program, are there any tutorials out there that can help teach me how to program using suse linux 10.0?
 
Old 01-17-2006, 03:07 AM   #2
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 37
install the c/c++ compiler tools in YasT (if they aren't already installed) and try compiling some c-code:
For instance this one: http://www.cprogramming.com/source/b...on=Jump&LID=12
Save it as bubblesort.c
Open a terminal in this dir and type:
gcc bubblesort

Than run the program by typing:
./a.out

More code-snippets: http://www.cprogramming.com/
Than start writing your own code :?
There are many other languages to write in of course. You can also try getting grip on your terminal first:
http://www.linuxcommand.org/
 
Old 01-17-2006, 07:54 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by qckdrw777
i am really new to linux and want to eventually learn how to program, are there any tutorials out there that can help teach me how to program using suse linux 10.0?
What language?
What kind of programs?
It may be best to start with a book on Linux programming--it will be relevant regardless of distro. Start with the O'Reilly web site.
 
Old 01-17-2006, 08:00 AM   #4
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
If you still have to learn to program, forget about Suse for now. Keep it generic and get 'the feel' for it.

I don't think that one will learn by just compiling some source code. There are plenty tutorials but you first have to pick a language. C is mentioned above and is probably the most generic one. It's also considered 'difficult', but there are plenty advantages. Once you know C, you can program for practically any platform (including microcontrollers as used in ABS, electronic injection, washing machines, tv, vcr, ird etc etc etc).
tutorial C (it's one that I quickly found with google, no quality guarantee)

Some other languages are tcl/tk, bash (if you limit yourself to Linux), python, perl, php and java; the list is definitely not complete. Except for java and C, the mentioned languages are scripting languages (which implies that they don't need compiling). In general, scripting languages are slower than compiled languages. For most scripting languages, versions are available for different platforms; if code is properly written, it can run on Linux, Mac, Windows etc without modifications.

Just type 'tutorial' and the name of the programming language in your favorite search engine and see what shows up.

Please note that learning to program is not only about learning a language. It's also about programming/design principles. I'm not aware of tutorials for this, but there are definitely books on the market.

PS I write in C. If a gui is required, I add a tcl/tk frontend to it.
 
Old 01-17-2006, 08:11 AM   #5
laceupboots
Member
 
Registered: Dec 2003
Location: Houston
Distribution: Windows Vista/ XP/ Mepis
Posts: 304

Rep: Reputation: 30
Nice code links muha I can use those myself.
 
Old 01-17-2006, 08:51 AM   #6
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 37
I guess my post is a good reply to: how can i see how programming/compiling works by example.
@laceupboots: thanks, i did not write bubblesort though
 
Old 01-17-2006, 04:20 PM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

As programming is a more appropriate forum IMHO, I'll close this one.

http://www.linuxquestions.org/questi...19#post2052019

Thanks!

Closed
 
  


Closed Thread


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
rpmdb: Program version 4.2 doesn't match environment version jhibbets Red Hat 2 05-29-2007 10:57 PM
wlan0 has been compiled with version 18, this program supports up to version 17. dave`2005 Linux - Wireless Networking 1 11-23-2005 05:16 PM
SUSE LINUX eval version jmdlcar SUSE / openSUSE 1 03-01-2005 11:00 PM
Latest version of SuSE linux???? jc_firestorm Linux - Software 3 02-18-2005 01:06 AM
SUSE LINUX Eval version Dannyarr SUSE / openSUSE 16 02-07-2005 11:05 PM


All times are GMT -5. The time now is 10:37 AM.

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