Hot answers tagged

11

For Ubuntu 14.04 sudo apt-get install clang nodejs Set up the cs50 library: https://cs50.readthedocs.io/libraries/cs50/c/ Download check50 from: https://github.com/robotmayo/check50 Set aliases for check50 and clang in ~/.bashrc http://www.reddit.com/r/cs50/comments/1ujct6/after_using_the_cs50_appliance_i_finally_decided/ceiqkqz Note: I already had ...


10

Apologies for the inconvenience! Should be fixed ASAP! But until it's fixed, yet another solution to this is to execute: $ echo "#includedir /etc/sudoers.d" | sudo tee -a /etc/sudoers in a terminal tab, and restarting all terminal sessions, by right-clicking inside a terminal and choosing Restart All Terminal Sessions. Then, try executing the apache50 ...


6

UPDATE 24-Dec-2016: As of IDE version 94, this has been fixed. Suspect some cloud9 change. For the "more comfortable", a patch is needed in apache50 script. You need elevated permissions. (I used sudo vi /usr/bin/apache50) change line 21 in /usr/bin/apache50 from apache="sudo -S -u www-data service apache2" to apache="sudo sudo -S -u www-data service ...


5

In Linux you can do: export CC=clang export CFLAGS="-ggdb3 -O0 -std=c99 -Wall -Werror -lcs50 -lm" and then run: make argv-2 I don't use Windows, but I believe it uses set instead of export. NB: If you want to be able to compile your psets without installing the appliance or the cs50 library, you can do this: Dowload cs50 library from: http://mirror....


4

The root cause is a Cloud9 change, github bug to track here: https://github.com/cs50/ide50/issues/27 DinoCoderSaurus's workaround should work until they update the cs50 ide. Also: you should learn to use vi! Simple steps for this case: $ sudo vi /usr/bin/apache50 press 'i' to enter Insert mode make your changes (using the arrow keys to navigate) press ...


4

The VirtualBox version of the appliance currently has an issue with the gedit install. Staff are aware of it and are working on a fix. In the meantime, run this: sudo apt-get update sudo apt-get install --reinstall gedit That should get it up and running again.


4

export CC=gcc export CFLAGS="-ggdb3 -O0 -std=c99 -Wall -Werror" export LDLIBS="-lcs50 -lm" -ggdb Produce debugging information for use by GDB. This means to use the most expressive format available (DWARF 2, stabs, or the native format if neither of those are supported), including GDB extensions if at all possible. -ggdblevel ...


3

To configure on 64-bit ubuntu 14.04LTS Install java Install LAMP. Install node.js Install clang : sudo apt-get install clang Install CS50 Library : apt-get install gcc wget http://mirror.cs50.net/library50/c/library50-c-5.zip unzip library50-c-5.zip rm -f library50-c-5.zip cd library50-c-5 gcc -c -ggdb -std=c99 cs50.c -o cs50.o ar rcs libcs50.a cs50.o ...


3

I wrote a small BASH script for setting up the appliance programs into existing Ubuntu OS. This script i had wrote, specially to configure my own Ubuntu 14.04 but will work for Raspberry Pi 2 Ubuntu Edition and 13.10(Server Edition) also. this script will configure/install: check50 CS50 Library (C, PHP, Ruby, Python) style50 render50 openjdk clang nodejs ...


2

The first and the foremost solution to the problem was google, which lead me to this link where David Sir posted about this error. Although that was on Mac OS X. The link redirects to this, 3rd topic from the top. I have made a copy of those instructions here. For some reason, VirtualBox doesn’t always come with a "host-only adapter" configured. (A "host-...


2

I am using Ubuntu 14.04. Following steps worked for me: sudo apt-get install clang sudo apt-get install nodejs sudo su install cs50 library for Debian/Ubuntu from: https://manual.cs50.net/library/ download check50 from: https://www.dropbox.com/s/89awhsta1qbqfnp/check50.zip copy check50.zip in your cs50 course folder and unzip it. Your check should work ...


2

I managed to find the answer on the cs50 manual link below: https://manual.cs50.net/library/ I have only installed the cs50 c library so far but it seems to work. If installing the rest of the software works as well as the c library an .iso / .img file seems like overkill.


1

Are you using CS50 ide ? #include <cs50.h> This library will only work if you use CS50 ide for compiling your code, otherwise it will not compile


1

All you need is "update50" then be happy! :)


1

The C libraries used by CS50 are all included in a default installation (std*.h, string.h, ctype.h and so on), except cs50.h of course, which you can find instructions on how to use and download and install here. Here's the getting started page for Clang where you can find instructions on how to set-up as well as links to downloads. At this point you will ...


1

I got it to compile and run on my system. I can now play breakout on my native Ubuntu. Don't have to be dependent on the appliance anymore.


Only top voted, non community-wiki answers of a minimum length are eligible