Wednesday, October 3, 2012

"File name too long" in scala/sbt (on ubuntu)


When building Kafka on mac osx, I had no problem.  I moved to Ubuntu and received an error:


[info] Compiling main sources...
[error] File name too long
[error] one error found

The problem is that you are most likely on an encrypted filesystem.  If you are using Ubuntu, you might not even remember that you selected to have an encrypted filesystem.  It presented an option when you installed to encrypt your home directory.  You probably answered yes. ;)

Anyway, to get compiling move the source to another filesystem/mount.  You'll be good to go after that.


4 comments:

Vít Šesták 'v6ak' said...

I was successful with tmpfs. Possibly a symlink to some directory in /tmp. But it is a terrible workaround.

Aleksey Izmailov said...

To check:

mount | grep ecryptfs

and see if you have your home directory listed.

Bug:
https://bugs.launchpad.net/ecryptfs/+bug/344878

Neng Silvi said...

I have download Long Path Tool and it is the best solution of your problem.

Ronald Carl said...

I tried Long Path Tool it worked wonders for me