Skip to content

Installation not working on OSX due to CRLF files (solution provided) #178

@mgohin

Description

@mgohin

Hi,

we needed to use dos2unix to be able to install and correctly use Twgit on OSX, in order to convert all files to LF instead of CRLF.

Problem encountered
Here all lines with command not found were in fact empty.

➜ twgit git:(stable) sudo make install

: command not found/makefile.sh: line 2: 
: command not found/makefile.sh: line 8: 
: command not found/makefile.sh: line 11: 
: command not found/makefile.sh: line 17: 
'Users/morgan/twgit/makefile.sh: line 31: syntax error near unexpected token `{
'Users/morgan/twgit/makefile.sh: line 31: `main() {
make: *** [install] Error 2

Solution used

brew install dos2unix
git clone https://github.com/Twenga/twgit.git .
find . -type f -not -path './.git/*' -print0 | xargs -0 dos2unix
sudo make install

Even if we only tweaked Makefile and makefile.sh, and installed twgit, we would have issues later when executing commands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions