• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 01:14
CEST 07:14
KST 14:14
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL20] Ro24 Preview Pt1: Runway132v2 & SC: Evo Complete: Weekend Double Feature4Team Liquid Map Contest #21 - Presented by Monster Energy9uThermal's 2v2 Tour: $15,000 Main Event18Serral wins EWC 202549
Community News
Maestros of The Game—$20k event w/ live finals in Paris20Weekly Cups (Aug 11-17): MaxPax triples again!13Weekly Cups (Aug 4-10): MaxPax wins a triple6SC2's Safe House 2 - October 18 & 195Weekly Cups (Jul 28-Aug 3): herO doubles up6
StarCraft 2
General
2v2 & SC: Evo Complete: Weekend Double Feature Geoff 'iNcontroL' Robinson has passed away What mix of new and old maps do you want in the next 1v1 ladder pool? (SC2) : The GOAT ranking of GOAT rankings RSL Revival patreon money discussion thread
Tourneys
Maestros of The Game—$20k event w/ live finals in Paris Sparkling Tuna Cup - Weekly Open Tournament Monday Nights Weeklies Master Swan Open (Global Bronze-Master 2) $5,100+ SEL Season 2 Championship (SC: Evo)
Strategy
Custom Maps
External Content
Mutation # 487 Think Fast Mutation # 486 Watch the Skies Mutation # 485 Death from Below Mutation # 484 Magnetic Pull
Brood War
General
Flash On His 2010 "God" Form, Mind Games, vs JD Joined effort New season has just come in ladder BW General Discussion Flash Announces (and Retracts) Hiatus From ASL
Tourneys
[ASL20] Ro24 Group C BWCL Season 63 Announcement [CSLPRO] It's CSLAN Season! - Last Chance [ASL20] Ro24 Group A
Strategy
Simple Questions, Simple Answers Fighting Spirit mining rates [G] Mineral Boosting Muta micro map competition
Other Games
General Games
Nintendo Switch Thread General RTS Discussion Thread Dawn of War IV Path of Exile Stormgate/Frost Giant Megathread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread The year 2050 Things Aren’t Peaceful in Palestine European Politico-economics QA Mega-thread
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
High temperatures on bridge(s) Gtx660 graphics card replacement Installation of Windows 10 suck at "just a moment"
TL Community
The Automated Ban List TeamLiquid Team Shirt On Sale
Blogs
Evil Gacha Games and the…
ffswowsucks
Breaking the Meta: Non-Stand…
TrAiDoS
INDEPENDIENTE LA CTM
XenOsky
[Girl blog} My fema…
artosisisthebest
Sharpening the Filtration…
frozenclaw
ASL S20 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2679 users

So I got Linux n stuff... now help? :(

Blogs > evanthebouncy!
Post a Reply
1 2 3 Next All
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
Last Edited: 2009-01-07 21:00:51
January 07 2009 06:56 GMT
#1
I've exhausted my question for this entry, I'll bug u guys later :D /thread

So I'm doing the first example of the textbook now... I ran into trouble.

In Emacs
yada.c:
===
#include <stdio.h>

main()
{
printf("hello, world\n");
}
===

In Terminal
evan@Evan-Box:~/Documents/tryingout$ cc yada.c
evan@Evan-Box:~/Documents/tryingout$ ls
a.out yada.c yada.c~
evan@Evan-Box:~/Documents/tryingout$ a.out
bash: a.out: command not found



nvm got it
evan@Evan-Box:~/Documents/tryingout$ a.out
bash: a.out: command not found
evan@Evan-Box:~/Documents/tryingout$ ~/Documents/tryingout/a.out
hello, world

So what did I do wrong? It seems I could type "emacs" in anywhere on the directory and emacs would run, but my a.out need to be specified by ~/Documents/tryingout/a.out for it to run... hmm

**
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
January 07 2009 06:57 GMT
#2
I'll be watching this blog constantly for the next 1 hour until I get answers xD
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
selboN
Profile Blog Joined January 2008
United States2523 Posts
January 07 2009 07:14 GMT
#3
You got a Linux n stuff....
So now you can't play iCCup n stuff...
You can't use Chaos Launcher n stuff...
Poor guy I feel your pain.
At least you won't have virus issues. People don't code viruses for Linux very often.
"That's what happens when you're using a mouse made out of glass!" -Tasteless (Referring to ZergBong)
tec27
Profile Blog Joined June 2004
United States3701 Posts
January 07 2009 07:18 GMT
#4
Why you had to get linux to do C programming I don't know, but ah well

C is made in files that are basically .txt, but different extension (.h and .c). You compile those through gcc and link them and such, so that's what you'll be using mainly. Getting emacs can depend on your distro, but knowing Ubuntu, you probably already have it (I dunno though, never used Ubuntu). Someone more well-versed in C will have to help you with the rest
Can you jam with the console cowboys in cyberspace?
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
January 07 2009 07:29 GMT
#5
Thx Tec, my eecs roomate recommended getting a linux for that because he says linux has the more natural compiler and windows has a shit compiler or something haha.
Hi Selbon, I use linux just to learn C, I still have windows.
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
datscilly
Profile Blog Joined November 2007
United States529 Posts
January 07 2009 07:33 GMT
#6
I'm using Ubuntu and I find that emacs is not automatically installed. You can easily install it through "Add/Remove.." Applications.
IzzyCraft
Profile Blog Joined June 2007
United States4487 Posts
January 07 2009 07:34 GMT
#7
GNU GCC complier not good enough?
I have ass for brains so,
even when I shit I'm droping knowledge.
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
January 07 2009 07:53 GMT
#8
On January 07 2009 16:34 IzzyCraft wrote:
GNU GCC complier not good enough?

:p I have no idea what are you talking about. I have 0 experience, please explain
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
cgrinker
Profile Blog Joined December 2007
United States3824 Posts
January 07 2009 08:12 GMT
#9
They made me get linux yesterday too at school for java.

Here's what you do. Edit the program in a text file inbuntu should come with a text editor. Put the file in the folder that you want to compile in, and then get your compiler up and running. Basically you can do it with the command prompt if you navigate to the right folder and then use whatever C command to run your compiler. I would look in your compiler documentation for that though.


Or run it in windows and feel better about your life because you aren't a open source zealot.
cgrinker
Profile Blog Joined December 2007
United States3824 Posts
January 07 2009 08:13 GMT
#10
Wait if your roommate told you how to do it why didn't you ask him? Just saying.
cgrinker
Profile Blog Joined December 2007
United States3824 Posts
January 07 2009 08:14 GMT
#11
And furthermore isn't C a little archaic? Is this for a class or did you decide that you wanted to make yourself suffer by learning to program in a language that is really really effing difficult?
Slithe
Profile Blog Joined February 2007
United States985 Posts
January 07 2009 08:18 GMT
#12
Out of curiosity, what do you plan on learning C for anyway? Depending on what you want to do, there may be a better language suited for your purposes.
IzzyCraft
Profile Blog Joined June 2007
United States4487 Posts
January 07 2009 08:24 GMT
#13
Well if you're just learning how to program there is probably no better language then C imo and i do believe it's true native linux's support C much better then windows. Anyways what i mentioned is probably the most used compiler used for any C work unless professional. Which can always be done though cmd prompt like alot of things it just doesn't come native to windows.
I have ass for brains so,
even when I shit I'm droping knowledge.
thedeadhaji *
Profile Blog Joined January 2006
39489 Posts
January 07 2009 08:36 GMT
#14
Kernighannn is an awesomee guuyyyyyyyyyyyy had him as faculty @ Pton
hymn
Profile Blog Joined February 2008
Bulgaria832 Posts
January 07 2009 08:37 GMT
#15
Like stated, you make text files with a text editor, doesn't matter if it's graphical or in the console. Then navigate the compiler to the file and compile it.

The extensions in Linux don't matter, while the permissions the files have - DO matter. I mean no matter what the file extension is, you can compile it with a C compiler as long as you have the permissions to do so.
azk he is the north american player but the titan he is the french stars
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
Last Edited: 2009-01-07 09:02:42
January 07 2009 08:44 GMT
#16
K guys thanks.
Is there anyway to find out if a certain application is on my system?
Say I want to search for starcraft, how do I do that in the terminal?
Now say I want to execute the program starcraft, how do that do that in the terminal?(Just type starcraft I guess? I typed emacs and it ran)
thanks!
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
January 07 2009 08:58 GMT
#17
Alrite I just typed emacs in the terminal and it prompted me to install it. SO I guess I'll have emacs now.
Now quesiton is:
Where is emacs? It did not ask me where to put emacs and now I dunno where it is haha

All previous question still pertains.
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
thedeadhaji *
Profile Blog Joined January 2006
39489 Posts
January 07 2009 09:01 GMT
#18
alternatives

emacs
xemcas
V
MasterOfChaos
Profile Blog Joined April 2007
Germany2896 Posts
January 07 2009 09:04 GMT
#19
If you want to use win, you could get Visual Studio Express which might be a bit more familiar. Emacs, GDB, etc might be powerful, but they are quite different from what a windowser is used to.
To play SC you need to install wine, as there is no linux native version of SC. And why do you want to do everything in the terminal? To manage apps there should be some packetmanager. But I don't know which one it is for your distri.
LiquipediaOne eye to kill. Two eyes to live.
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
January 07 2009 09:22 GMT
#20
Hai, I know how to use emacs.
I am not saying I want to play sc, I'm just using sc as an example of a program. I am asking how do I run a program from the terminal. So far my understanding is you just type the program.

For instance I jsut got emacs and to run it I just go
yadayada$Emacs&

and it'll run it for me.
Is my interpretation correct?
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
1 2 3 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 4h 46m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 143
StarCraft: Brood War
Sea 8624
Larva 408
PianO 284
ggaemo 87
Icarus 9
Dota 2
NeuroSwarm151
League of Legends
JimRising 0
Counter-Strike
Stewie2K1257
Heroes of the Storm
Khaldor134
Other Games
summit1g9555
WinterStarcraft771
singsing540
ViBE173
kaitlyn18
ROOTCatZ9
Organizations
Other Games
gamesdonequick838
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Berry_CruncH306
• davetesta19
• Freeedom3
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Diggity4
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo1012
Upcoming Events
Sparkling Tuna Cup
4h 46m
SC Evo League
6h 46m
Chat StarLeague
10h 46m
Razz vs Julia
StRyKeR vs ZZZero
Semih vs TBD
Replay Cast
18h 46m
Afreeca Starleague
1d 4h
Queen vs HyuN
EffOrt vs Calm
Wardi Open
1d 5h
RotterdaM Event
1d 9h
Replay Cast
1d 18h
Afreeca Starleague
2 days
Rush vs TBD
Jaedong vs Mong
Afreeca Starleague
3 days
herO vs TBD
Royal vs Barracks
[ Show More ]
Replay Cast
3 days
The PondCast
4 days
Replay Cast
4 days
LiuLi Cup
5 days
Cosmonarchy
5 days
OyAji vs Sziky
Sziky vs WolFix
WolFix vs OyAji
BSL Team Wars
5 days
Team Hawk vs Team Dewalt
BSL Team Wars
5 days
Team Hawk vs Team Bonyth
SC Evo League
6 days
[BSL 2025] Weekly
6 days
Liquipedia Results

Completed

Jiahua Invitational
uThermal 2v2 Main Event
HCC Europe

Ongoing

Copa Latinoamericana 4
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
ASL Season 20
CSL Season 18: Qualifier 1
Acropolis #4 - TS1
CSLAN 3
SEL Season 2 Championship
WardiTV Summer 2025
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025

Upcoming

CSL Season 18: Qualifier 2
CSL 2025 AUTUMN (S18)
LASL Season 20
BSL Season 21
BSL 21 Team A
Chzzk MurlocKing SC1 vs SC2 Cup #2
RSL Revival: Season 2
Maestros of the Game
EC S1
Sisters' Call Cup
IEM Chengdu 2025
PGL Masters Bucharest 2025
MESA Nomadic Masters Fall
Thunderpick World Champ.
CS Asia Championships 2025
Roobet Cup 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.