Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

How to install major programming languages on Ubuntu Linux?


  • Please log in to reply
2 replies to this topic

#1 BlueGalaxy

BlueGalaxy

  • Members
  • 87 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:04:40 AM

Posted 01 January 2017 - 10:52 PM

I've had some success with writing bash scripts. I like that this programming language is built into the system. Now I would like to install the major programming languages C, C++, Java, Python, Javascript, HTML, CSS to Linux. I would like to learn programming and have practice with these programming languages in a Linux environment. If I create and edit my source code files in vim, how can I compile and run them, and see the program output directly in the terminal, instead of an "output window" that is provided with an IDE? Can I then pipe the output into GNU/Linux built in utilities such as grep?



BC AdBot (Login to Remove)

 


#2 Guest_hollowface_*

Guest_hollowface_*

  • Guests
  • OFFLINE
  •  

Posted 03 January 2017 - 02:19 AM

For HTML, Javascript, and CSS there is nothing that need be installed, because they are written as plain text, and do not need to be compiled. In order to view the finished work you will need a web browser that supports these languages (eg: Firefox).



#3 DeimosChaos

DeimosChaos

  • BC Advisor
  • 1,445 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:United States, Delaware

Posted 03 January 2017 - 10:21 AM

There are already a decent amount of programming languages on a typicall Linux install. So you won't have to do much with it. By typicall, I mean a full non frugal install of Linux.

 

Python - all you gotta do is write up some python code and make sure the file is executable and put 'python' in front of the prgram name. Like so:

python program1.py

C and C++ you may have to install a compiler for them (the compiler might already be installed - but I don't think it typically is by default). If you are on a Debian distro all you should need to install (if I am remembering right) is the 'build-essentials' package. That will include gcc, g++, and make in there.

 

Hollowface already covered HTML/CSS/Javascript. You can write those anywere since they are web based programming languages and are meant to be seen via a browser.


Edited by DeimosChaos, 03 January 2017 - 10:21 AM.

OS - Ubuntu 14.04/16.04 & Windows 10
Custom Desktop PC / Lenovo Y580 / Sager NP8258 / Dell XPS 13 (9350)
_____________________________________________________
Bachelor of Science in Computing Security from Drexel University
Security +





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users