Somehow I assumed that I would be able to compile a basic C program on any linux box - I mean unices are useful like that, right? So I was a bit surprised when I decided to compile a bit of C just now and was faced with the following errors:
arvind@lovely:gcc-4.1 try.c -o try.out
try.c:1:18: error: stdio.h: No such file or directory
try.c:2:22: error: sys/types.h: No such file or directory
try.c: In function ‘main’:
try.c:5: warning: incompatible implicit declaration of built-in function ‘printf’
So what kind of unix comes with make and a compiler, but none of the required dev libraries and headers required to make any normal C program work? Well a brief google yielded the following solution.. Yup, you guessed it.. you need to install a dev package:
sudo apt-get install build-essential
it works...........
Saturday, October 6, 2007
Installing SAMBA
Error like E:Unable to check......
If you are tired with the error like
E: Could not get lock /var/lib/apt/lists/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the list directory
on updating or anything like arvind@lovely:~$ sudo apt-get update
then do the following
1-) sudo chmod 777 /var/lib/apt/lists/
then delete or cut and paste the lock file in another place and then try
2-) sudo apt-get update
there will error free updating or any processing...........
E: Could not get lock /var/lib/apt/lists/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the list directory
on updating or anything like arvind@lovely:~$ sudo apt-get update
then do the following
1-) sudo chmod 777 /var/lib/apt/lists/
then delete or cut and paste the lock file in another place and then try
2-) sudo apt-get update
there will error free updating or any processing...........
Friday, October 5, 2007
New To J2ME
New to J2ME....dont worry it is really great for you now....
just click and download the book for beginners
beginning J2ME: From Novice to Professional
just click and download the book for beginners
beginning J2ME: From Novice to Professional
Thursday, October 4, 2007
Key Combination For BASH Script
Basic Terminal Command for Beginners
| Command | Meaning |
|---|---|
| apropos | Search information about a command or subject. |
| cat | Show content of one or more files. |
| cd | Change into another directory. |
| exit | Leave a shell session. |
| file | Get information about the content of a file. |
| info | Read Info pages about a command. |
| logout | Leave a shell session. |
| ls | List directory content. |
| man | Read manual pages of a command. |
| passwd | Change your password. |
| pwd | Display the current working directory. |
Subscribe to:
Posts (Atom)