Welcome fellow students, register yourself and dive into asking questions, giving answers and helping the community learn with you.

How To Install Check50 & CS50 Library in Ubuntu Linux 1404 ?

1 Answer

+1 vote
answered Apr 9, 2015 by Dhirendra Sharma (1,270 points)

If Had a 64 bit Ubuntu Linux running Ubuntu 14.04 trusty tahr Then You can install CS50 Library in Your System
Follow these instructions
If you are running your own 64-bit Ubuntu Linux, you can run
wget -q -O - http://mirror.cs50.net/appliance50/2014/debs/keyFile | sudo apt-key add -
followed by
sudo add-apt-repository "deb http://mirror.cs50.net/appliance50/2014/debs/dists/trusty/main/binary-amd64 /"

sudo apt-get update
sudo apt-get install check50 library50-c style50 library50-php render50

will install check50, the CS50 Library, and style50, respectively.



For 32 bit Ubuntu
If you are running your own 32-bit Ubuntu Linux, you can run
wget -q -O - http://mirror.cs50.net/appliance50/2014/debs/keyFile | sudo apt-key add -
followed by
sudo add-apt-repository "deb http://mirror.cs50.net/appliance50/2014/debs/dists/trusty/main/binary-i386 /"

sudo apt-get update
sudo apt-get install check50 library50-c style50 library50-php render50
will install check50, the CS50 Library, and style50, respectively.

This Command Surely Install Its CS50 Library File In Your Ubuntu PC :) !

Hope This May Help You Buddy

commented May 30, 2015 by abishek (100 points)
#include<stdio.h>
#include<cs50.h>
#include<string.h>
void main()
{
 string s;
 printf("\n enter a string");
 s=GetString();
 printf("%s",s);
}




abhishek@abhishek-desktop:~/cs50$ make initials
cc     initials.c   -o initials
/tmp/ccORJ74S.o: In function `main':
initials.c:(.text+0x22): undefined reference to `GetString'
collect2: error: ld returned 1 exit status
make: *** [initials] Error 1


even after doing  the above procedure i get this error
commented Oct 28, 2015 by bhavik_knight (100 points)
link cs50 library by linking flag -lcs50
commented Apr 14, 2016 by wilson (110 points)
Very helpful, thanks :)
For reference I'm using Ubuntu 15.10 and it's working.
commented May 26, 2016 by farhantahmid007 (120 points)
I didn't get the part linking!! BTW I am also using 15.10 Help me out please. Be more specific please :)
commented May 26, 2016 by Dhirendra Sharma (1,270 points)
You can try the IDE installation process on your Ubuntu System if it is a 64 bit operating system
http://dkrsharma.github.io/CS50-tools-ubuntu
Welcome to CS50xHelpers Q&A, where you can ask questions and receive answers from other members of the community.

190 questions

248 answers

217 comments

3,602 users

5 Online
0 Member And 5 Guest
...