PDA

View Full Version : [ubuntu] lm.h: No such file or directory



santhust
June 16th, 2009, 07:15 AM
Hello.
I tried to compile a program using gcc, which had a command
#include <lm.h>

I suppose that the compiler couldn't find lm.h in usr/include and so reported it.
Now, I have lm.h with me. I would like to know how to put this file in usr/include directory.

A simple copy and paste didn't worked. A pop-up appeared

there was an error copying the files to /usr/include
Error opening file '/usr/include/lm.h': Permission denied

I think if I am able to put lm.h in /usr/include this might solve the problem.

Can someone help me please with this problem?

_Purple_
June 16th, 2009, 07:22 AM
Use sudo to copy files to /usr/include or use the GUI with root privilege

gksudo nautilus