xxorde / librekinect

Depth data from a kinect sensor! Small and fast kernel driver. Also for embedded devices like the raspberry pi!
407 stars 68 forks source link

ln: failed to create symbolic link `/lib/modules/4.1.6-v7+/build': File exists #35

Closed modulitos closed 8 years ago

modulitos commented 8 years ago

Following the documentation, I get the following error:

[pi@raspberrypi]~$ mv linux-rpi-4.1.y/ linux
[pi@raspberrypi]~$ ln -s /usr/src/linux /lib/modules/$(uname -r)/build
ln: failed to create symbolic link `/lib/modules/4.1.6-v7+/build': File exists
[pi@raspberrypi]~$

It seems like ln -s does not overwrite the destination file if it exists. Should I delete the old file at /lib/modules/4.1.6-v7+/build?

I downloaded and extracted linux-rpi-4.1.y/ via wget https://github.com/raspberrypi/linux/archive/rpi-4.1.y.tar.gzw

Here is additional info about my system:

[pi@raspberrypi]~$ uname -r
4.1.6-v7+
modulitos commented 8 years ago

My bad, I think I missed a step. Closing this issue for now...