Ask your own question, for FREE!
Computer Science 8 Online
OpenStudy (unklerhaukus):

using the program `gedit`, how can i get terminal extension for the bottom panel?

OpenStudy (unklerhaukus):

i have been that that page already it says run the following command sudo apt-get install gedit-plugins

OpenStudy (unklerhaukus):

where/how do i run it?

OpenStudy (unklerhaukus):

i am just starting my first computer science course, CS50x, i dont know programming yet,

OpenStudy (unklerhaukus):

i tried putting that command into Terminal, it says sudo: apt-get: command not found

OpenStudy (unklerhaukus):

i haven't used Terminal before, and i dont really l know what it is/does

OpenStudy (unklerhaukus):

????????????//????????????????

OpenStudy (e.mccormick):

Hmmm.... what LINUX are you using?

OpenStudy (unklerhaukus):

As i say i'm new to programming , so im not sure exactly what that question means, but i am operating OS snow leopard

OpenStudy (e.mccormick):

Aaah. Mac. OK, you are reading LINUX instructions, not the same on a Mac.

OpenStudy (unklerhaukus):

hmm,

OpenStudy (unklerhaukus):

i thought Mac was Linux based or something like that,

OpenStudy (e.mccormick):

No. Not at all. Mac is UNIX based, as in the real deal. LINUX is a work alike for UNIX, but it NOT UNIX itself. This makes for some serios differences at times. http://superuser.com/questions/171403/how-to-install-plugins-for-gedit-on-mac-os-x

OpenStudy (e.mccormick):

What programming language are you going to be learning?

OpenStudy (unklerhaukus):

starting with C

OpenStudy (unklerhaukus):

the lecturer is using a mac

OpenStudy (e.mccormick):

OK. Umm... wow. That is a deep one to start with. Though it can be done, the syntax does not make it easy to get used to.

OpenStudy (e.mccormick):

So are you using xcode?

OpenStudy (unklerhaukus):

i dont know what that is

OpenStudy (e.mccormick):

It is an IDE (Intergrated Development Environment) for the Mac. Though, if you want terminal, I don't think you are. You may be using gcc or the terminal computer that comes with xcode.

OpenStudy (unklerhaukus):

The lecturer does this

OpenStudy (unklerhaukus):

All i can get is this , the shell output and python console are already installed as plugins, but the terminal one wasn't

OpenStudy (e.mccormick):

Yah, and with it being ported to Mac, it is going to depend on what was built for it. Hmmm... Any way to ask the prof how he got that for his Mac? This is how most people would do C on a Mac: http://masters-of-the-void.com/

OpenStudy (e.mccormick):

This seems a little better on how to get the plugins: http://earthwithsun.com/questions/171403/how-to-install-plugins-for-gedit-on-mac-os-x

OpenStudy (e.mccormick):

At the bottom it says that MacPorts has gedit-plugins

OpenStudy (e.mccormick):

Try this: sudo port install gedit-plugins

OpenStudy (unklerhaukus):

I tried to download that Xcode, but the version i need is 4.2 because im running OS 6.8, i cannot find xcode4.2

OpenStudy (unklerhaukus):

sudo: port: command not found, this is really painful i dont know what i am doing, downloading all kinds of think that arn't working i originally tried to get the CS50 Appliance 19 some kind of virtual machine but that didn't work either im not sure why this is so difficult

OpenStudy (unklerhaukus):

i just want `hello words` \(\ddot\frown\)

OpenStudy (e.mccormick):

OK. Well, dealing with port not being istalled might be easier.

OpenStudy (e.mccormick):

That is for installing MacPorts. Once you have MacPorts, it has a version of gedit-tools.

OpenStudy (unklerhaukus):

i dont even know what most of these words/concepts are other than com sci jargons

OpenStudy (e.mccormick):

MacPorts is an application that lets you use a lot of tools that have been ported from LINUX compatible code to Mac compatable code.

OpenStudy (unklerhaukus):

ok i have downloaded macports 1.8.0

OpenStudy (e.mccormick):

Now, you have SnowLeopard?

OpenStudy (unklerhaukus):

yes OS X.6.8

OpenStudy (e.mccormick):

Kk. Then scroll down in the list and get the latest for it: https://distfiles.macports.org/MacPorts/MacPorts-2.2.1-10.6-SnowLeopard.pkg

OpenStudy (e.mccormick):

Newer than the 1.8.0 =)

OpenStudy (unklerhaukus):

ok i have installed that

OpenStudy (e.mccormick):

Now, if that installed the way I think it should have, this should work: sudo port install gedit sudo port install gedit-plugins That will get the MacPorts vestion of gedit and then the tools for it.

OpenStudy (unklerhaukus):

OpenStudy (e.mccormick):

hmmm.... So it does not have a c compiler yet. Well.... Then one more thing to find.

OpenStudy (unklerhaukus):

are we making progress? i have no idea what is going on

OpenStudy (e.mccormick):

Hmmm.... and so they have no version of Xcode for SnowLeopard?

OpenStudy (unklerhaukus):

The first CS50x lecture said 73% of student in the class have no programming experience .

OpenStudy (e.mccormick):

Yah, well, they did not pick the greatest thing to start with. LOL

OpenStudy (unklerhaukus):

we the first thing we started with was Scratch , but that was almost a game

OpenStudy (e.mccormick):

It uses Java.

OpenStudy (e.mccormick):

Yah, everything I see says you need to get xcode from Apple. Whatever version they have for your verson of the OS should be fine. http://www.mkyong.com/mac/how-to-install-gcc-compiler-on-mac-os-x/

OpenStudy (unklerhaukus):

so i need to register with apple ,

OpenStudy (e.mccormick):

Yep, register as a developer to get the free tools. To be honest, it is the same thing Microsoft does if you want their free dev tools.

OpenStudy (e.mccormick):

OK, well, I need sleep. I hope that with Xcode and the command line tools for it you are able to do what you need. It would be required for any sort of C work on a Mac as it is.

OpenStudy (unklerhaukus):

dammit, that registration form took me 10 minutes and i typed in the wrong email address, Thanks for helping me for these past two hours, get some rest

OpenStudy (unklerhaukus):

Ok i have now got the the apple developer downloads page, none of these options seem right, none are for snow leopard

OpenStudy (unklerhaukus):

maybe i need to get a new computer, any recommendations (with programming in-mind)?

OpenStudy (e.mccormick):

I think you would have to go with the 3.x version for the older system.

OpenStudy (e.mccormick):

Found a post that said: "Xcode 3.2.6 for Snow Leopard is the last one available for free (registered) developer accounts " So look for that one. It should do fine for what you want.

OpenStudy (unklerhaukus):

ill have to download this when i get home in several hours (the internet cafe is to slow to download these 4GB)

OpenStudy (e.mccormick):

Well, at least it gives you something cheaper than a new computer to look at.

OpenStudy (unklerhaukus):

Now i have installed Xcode 3.2.6 , yay!

OpenStudy (unklerhaukus):

ive put `sudo port install gedit` and `sudo port install gedit-plugins` into terminal and its doing stuff (things are installing, i guess)

OpenStudy (unklerhaukus):

i think this is good,

OpenStudy (e.mccormick):

Yes, that is VERY good. Not only did you install your C compiler, you also built a C/C++ program! So Hello World should go great when you get to it. Now, I do not know if you have two installs of GEdit at this point, but you certainly have more of what you need to get things done in the class. If there are two, you just need to figure out where it put the one with the tools and use that one.

OpenStudy (unklerhaukus):

i think i only have one gedit, but i don't know how to check. i still don't see the plugin in the preferences/plugings menu What is the next step?

OpenStudy (e.mccormick):

Hmmm... How did you install the original version you had? Is there a way to uninstall it easily so you can see if there is another version hiding somewhere?

OpenStudy (unklerhaukus):

i downloaded `gedit-3.2.6-3_SnowLeopard_64bit.dmg` im not sure how to uninstall it, other than simply deleting the application from the applications folder, will that work?

OpenStudy (unklerhaukus):

so i just have to trash the gedit bundle and its preferences?

OpenStudy (e.mccormick):

Don't use a Mac, so... I just have been using computers since I was 11, including some pre-OSX Macs. But I do use FreeBSD, LINUX, and some other things that are similar.

OpenStudy (unklerhaukus):

i think my first computer (dads) was an old mac classic (B&W) i remember using it before i could read properly, one-time (trying to eject a games floppy disk) i clicked on `erase disk` rather than `eject disk`, and deleted all his files [including his thesis] hahaha, (fortunately most were backed up on floppy disks ) and i also we had an old LCII mac (colour) i haven't owned a Windows operator

OpenStudy (e.mccormick):

One of the stupidest things I think Mac did was making it so you drug disks to the trash to eject them. If you accidently drag a file rather than the disk... big mistake.

OpenStudy (unklerhaukus):

it turns out there is a virtual machine for the cs50x course i'm doing that should be able to run every thing i need it to. so i've been using that, thanks anyway @e.mccormick

OpenStudy (e.mccormick):

LOL. Yah, there are a few. Did not think about that. Well, I hope it is all working in case you want to actually code something.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!