Skip to content

pyenv on Linux: Error Fix for ": No such file or directory"

Albert Huang edited this page Mar 5, 2016 · 1 revision

When you try to install pyenv on Linux, you may encounter a strange message like this:

: No such file or directory

After some hairpulling, it looks like the thing that made this fail is.... newline types. core.autocrlf was set to true, which allowed Windows/DOS-style newlines to be downloaded. You may see something like this in your ~/.gitconfig:

[core]
    autocrlf = true

On Linux, this will always convert the line endings to CRLF, instead of the desired LF. This will cause problems for sure!

Instead, you need to set it to true:

git config --global core.autocrlf input

If you look at your ~/.gitconfig again, the setting should now be correct:

[core]
    autocrlf = input