CS50 library in C
<p>I am new to Ubuntu and new to C programming. Now I am watching cs50 videos to understand better about C and CS all together.
I tried to install this by using these guidelines:</p>

<p>Debian, Ubuntu</p>

<p>First become root, as with:</p>

<pre><code>sudo su -
</code></pre>

<p>Then install the CS50 Library as follows:</p>

<pre><code>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
chmod 0644 cs50.h libcs50.a
mkdir -p /usr/local/include
chmod 0755 /usr/local/include
mv -f cs50.h /usr/local/include
mkdir -p /usr/local/lib
chmod 0755 /usr/local/lib
mv -f libcs50.a /usr/local/lib
cd ..
rm -rf library50-c-5
</code></pre>

<p>I used it, and I think everything went as planned, but as soon as I try to run <code>gcc demo.c</code> I get a fatal error message:</p>

<pre><code>adder.c:2:18: fatal error: cs50.h: No such file or directory
#include &lt;cs50.h&gt;
</code></pre>

<p>So as it seems that somewhere something went wrong and I don't really know how to fix it.  Could anyone guide me a little bit how to fix it or how reinstall everything that C automatically would include that library?</p>