1

I am a new to Ubuntu. I have used Windows before, but I am not able to install new software in Ubuntu from the offline setup files, so I don't know how to install software in Ubuntu. Please tell me how to install new software, such as C Compiler, JDK, etc. in Ubuntu.

karel
  • 114,770
Anant666
  • 115
  • 1
  • 1
  • 5

2 Answers2

0

To install the softwares you have mentioned type the following commands in command line

For JDK:

sudo apt-get install openjdk-7-jdk

You can use the gcc compiler

sudo apt-get install gcc

For other softwares you can search via apt just type the command to list

sudo apt-cache search {software-name}

Or the best way for you to install a software is by using Ubuntu Software centre

See the link here

Ubuntu Software Centre

Tarun
  • 4,245
  • 13
  • 50
  • 74
  • but how to use GCC for C programming. I m in a habit of programming on windows using turbo c compiler. How to type and compile my c programs – Anant666 Aug 27 '13 at 06:01
  • If you need to know how to compile C programs in Ubuntu thats a different question look at the following link http://www.wikihow.com/Compile-a-C/C%2B%2B-Program-on-Ubuntu-Linux – Tarun Aug 27 '13 at 06:03
  • gcc -Wall -W -Werror main.c -o HelloWorldC gcc: error: main.c: No such file or directory gcc: fatal error: no input files compilation terminated. anant@anant-desktop:~$ ..........this is the error i encounter while compiling a program – Anant666 Aug 27 '13 at 06:11
  • Well then I believe you put a new question for it giving all the details. – Tarun Aug 27 '13 at 06:15
  • how to reduce brightness on my screen. It's straining my eyes – Anant666 Aug 27 '13 at 07:50
0

If you are preparing to build software, then

sudo apt-get install build-essential

is a good place to start - installs your basic C and C++ compilers, libraries and utilities, all in one operation.

There are several JDKs that can be installed from the standard repos (make sure you have enabled the partner repo in /etc/apt/sources.list). @Tarun showed above how to install openjdk, but see here for how to install Oracle Java8.

David Purdue
  • 2,477
  • 13
  • 16