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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-10-2007, 11:53 PM
|
#1
|
LQ Newbie
Registered: Oct 2007
Posts: 4
Rep:
|
How can I install Java on Linux and any C compiler for Ubuntu? Please Help.
Dear LinuxQuestions.org members and administrators,
Hello, a pleasant day to everyone.
This is my first time to join this forum and it is also my first time to use Linux operating system. Our school is switching from Windows to Linux (using Ubuntu on workstations). It's really a hard time, but somehow a very challenging task to be familiarized on such new OS. But, as a starting point, I just want to ask how can I install Java and C on Ubuntu Linux? I hope someone could give me a "real" step by step instruction on how to do this,(sad to say...I hope it is a real dummy approach, if you please). I kept on finding websites but they are all complicated to me to follow (sorry to say). I hope someone could help me, although I've already found a tutorial on how to run a simple C using Linux on this site (I think it's from user named crammy), the real problem is installation on C and Java on Ubuntu.
Thank you very much in advance and God bless every one!
Respectfully Yours,
Mark Ryan
Ubuntu Linux newbie
|
|
|
10-11-2007, 01:10 AM
|
#2
|
Senior Member
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163
Rep:
|
There's a lot of documentation available regarding the installation of Java on Ubuntu.
Just search google for "Java on Ubuntu" and it will give you a lotta results.
Regarding the C compiler thing, if you want just a compiler (and not an IDE), Ubuntu must have already installed it for you.
Fire a terminal and run the following command. (can be found in Menu > Applications > Accessories > Terminal)
Code:
user@computer ~ $ gcc
If gcc is installed, you should get something like
Code:
gcc: no input files
If it is not installed, run the following command:
Code:
user@computer ~ $ sudo apt-get install build-essential
Hope it helps.
|
|
|
10-12-2007, 10:04 PM
|
#3
|
LQ Newbie
Registered: Oct 2007
Posts: 4
Original Poster
Rep:
|
Thank you Mr. duffmckagan!
Dear Mr. duffmckagan,
Hello Sir, a pleasant day to you (and to all members as well). Thank you very much for the starting information you've shared. I'll try it as soon as possible. But is Java compiling is as same as Windows? Or is it different to Linux? I noticed that you indicate user@computer ~ $, is this as same as a C:\> in DOS? What if I saved my sample.C file is saved on my flash drive (E , is it still can be accessed user@computer ~ $? In addition, as you'd said earlier, what if in case I want an IDE for C programming, is that a new approach? I know installing an application in Linux is very diferent in Windows. I hope you could help me again, by giving me "slow" instructions.
Thank you and more power.
Respectfully yours,
Mark Ryan
|
|
|
10-12-2007, 10:05 PM
|
#4
|
LQ Newbie
Registered: Oct 2007
Posts: 4
Original Poster
Rep:
|
Thank you Mr. duffmckagan!
Dear Mr. duffmckagan,
Hello Sir, a pleasant day to you (and to all members as well). Thank you very much for the starting information you've shared. I'll try it as soon as possible. But is Java compiling is as same as Windows? Or is it different to Linux? I noticed that you indicate user@computer ~ $, is this as same as a C:\> in DOS? What if I saved my sample.C file is saved on my flash drive ( E: ), is it still can be accessed user@computer ~ $? In addition, as you'd said earlier, what if in case I want an IDE for C programming, is that a new approach? I know installing an application in Linux is very diferent in Windows. I hope you could help me again, by giving me "slow" instructions.
Thank you and more power.
Respectfully yours,
Mark Ryan
|
|
|
10-12-2007, 11:20 PM
|
#5
|
Senior Member
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079
Rep:
|
yes user@computer is basically the same as C:\ in DOS. In Linux there are no drive letters, the drive is refered to its mount point e.g. /media/TravelDrive for flash drives. Most distros have a package manager to install software, a package manager is a program that downloads the program and dependencies for you and installs it
|
|
|
10-13-2007, 12:35 AM
|
#6
|
Senior Member
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163
Rep:
|
Quote:
But is Java compiling is as same as Windows?Or is it different to Linux?
|
I am not sure what you exactly mean by this. I thought you required the Java Runtime Environment as opposed to Java Software Development Kit (SDK). Isn't that right?
If that is not quite clear, Java Runtime Environment is usually used by people who run applications that require Java Support. On the other hand, Java SDK is used by developers who write Java Programs and compile them.
Quote:
I noticed that you indicate user@computer ~ $, is this as same as a C:\> in DOS?
|
Yes, you can say that.
Quote:
What if I saved my sample.C file is saved on my flash drive ( E: ), is it still can be accessed user@computer ~ $?
|
Doesn't matter where you have saved your file, Linux can still access them. Again as AceofSpades19 has mentioned in the previous post that Linux doesn't quite work the way Windows does. There are no drive letters in Linux. The nomenclature for Devices and Partitions is different.
Take a look at the following two links. They will help you clarify your concept of Device Names in Linux.
http://tldp.org/HOWTO/Partition/devices.html
http://www.debian.org/releases/stabl...apcs04.html.en
Also, I don't really recall, but Ubuntu should be able to automatically detect your USB Drive once it is connected. Also, user@computer ~ $ points to the Home Directory of the user. Suppose my Flash Drive is at /dev/sda1 and is mounted on /mnt/usb, use the "cd /mnt/usb" command (without the quotes, of course) to "cd" -- change directory to your Flash Drive.
Quote:
In addition, as you'd said earlier, what if in case I want an IDE for C programming, is that a new approach?
|
Umm..I don't know if it is what you call "The New Approach". But well..people have been using IDEs (Integrated Development Environment) for years now. Again, I recommend that you follow the following two links:
http://en.wikipedia.org/wiki/Integra...nt_environment
http://anjuta.sourceforge.net/
Also, I strongly recommend that you take the basic linux course mentioned below...
http://www.linux.org/lessons/beginner/toc.html
|
|
|
10-30-2007, 06:46 AM
|
#7
|
LQ Newbie
Registered: Oct 2007
Posts: 4
Original Poster
Rep:
|
How about a new compiler for C in Linux instead of gcc?
Dear Sirs,
A pleasant day to everyone, I just wonder, what if I want a "new" compiler for C in Ubuntu, what download sites/files/applications you will suggest me? And how about an IDE+compiler in C for Ubuntu, is that possible? And I hope you could give me instructions in such case on how would I install such IDE/compiler in Linux. To be honest, I really find it hard to configure gcc in our Ubuntu, the sudo stuff is not working, our IT said the gcc needs to be download from the Internet (some kind of that thing/explanation).
A million thanks to everyone in LinuxQuestions.org members, and God speed.
Yours truly,
Mark Ryan
Linux newbie
|
|
|
10-30-2007, 07:08 PM
|
#8
|
Senior Member
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079
Rep:
|
I don't know what a "new" compiler for c is. Just open up the Synaptic Package Manger or Add/Remove programs utility and search for c IDE.
|
|
|
All times are GMT -5. The time now is 07:39 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|