• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 22:19
CEST 04:19
KST 11:19
  • 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
[ASL19] Finals Recap: Standing Tall9HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Flash Announces Hiatus From ASL54Weekly Cups (June 23-29): Reynor in world title form?12FEL Cracov 2025 (July 27) - $8000 live event16Esports World Cup 2025 - Final Player Roster16Weekly Cups (June 16-22): Clem strikes back1
StarCraft 2
General
The SCII GOAT: A statistical Evaluation The GOAT ranking of GOAT rankings Statistics for vetoed/disliked maps How does the number of casters affect your enjoyment of esports? Esports World Cup 2025 - Final Player Roster
Tourneys
Korean Starcraft League Week 77 Master Swan Open (Global Bronze-Master 2) RSL: Revival, a new crowdfunded tournament series [GSL 2025] Code S: Season 2 - Semi Finals & Finals $5,100+ SEL Season 2 Championship (SC: Evo)
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
Player “Jedi” cheat on CSL Flash Announces Hiatus From ASL BGH Auto Balance -> http://bghmmr.eu/ Unit and Spell Similarities Help: rep cant save
Tourneys
[Megathread] Daily Proleagues [BSL20] Grand Finals - Sunday 20:00 CET Small VOD Thread 2.0 [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile What do you want from future RTS games? Beyond All Reason
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
Things Aren’t Peaceful in Palestine US Politics Mega-thread Trading/Investing Thread Russo-Ukrainian War Thread The Games Industry And ATVI
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
Formula 1 Discussion 2024 - 2025 Football Thread NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Blogs
Culture Clash in Video Games…
TrAiDoS
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 640 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 States3696 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 States528 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 41m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 283
RuFF_SC2 135
Livibee 102
StarCraft: Brood War
Sea 5339
NaDa 67
Icarus 4
Dota 2
monkeys_forever261
capcasts171
NeuroSwarm115
febbydoto15
LuMiX1
League of Legends
JimRising 778
Counter-Strike
Stewie2K466
Other Games
summit1g10829
tarik_tv6573
Organizations
Other Games
BasetradeTV66
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Berry_CruncH263
• Hupsaiya 105
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Doublelift5387
• masondota2955
Upcoming Events
Korean StarCraft League
41m
CranKy Ducklings
7h 41m
RSL Revival
7h 41m
ByuN vs Cham
herO vs Reynor
FEL
13h 41m
RSL Revival
1d 7h
Clem vs Classic
SHIN vs Cure
FEL
1d 9h
BSL: ProLeague
1d 15h
Dewalt vs Bonyth
Replay Cast
2 days
Sparkling Tuna Cup
3 days
The PondCast
4 days
[ Show More ]
Replay Cast
4 days
RSL Revival
5 days
Replay Cast
5 days
RSL Revival
6 days
Liquipedia Results

Completed

BSL 2v2 Season 3
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025

Upcoming

2025 ACS Season 2: Qualifier
CSLPRO Last Chance 2025
2025 ACS Season 2
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
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.