Coder Social home page Coder Social logo

./bootstrap.sh throws error about dimple HOT 3 OPEN

julianvogels avatar julianvogels commented on September 3, 2024
./bootstrap.sh throws error

from dimple.

Comments (3)

radarsat1 avatar radarsat1 commented on September 3, 2024

So it was missing a hashbang and so if you were running it from zsh maybe it was not the correct syntax. Current master should force it to run as a bash script. Otherwise you could try running it as "bash bootstrap.sh"

from dimple.

julianvogels avatar julianvogels commented on September 3, 2024

I tried "bash bootstrap.sh" after pulling the latest code. Got a very similar error:

julianvogels:dimple (master) $ bash bootstrap.sh
: command not found2:
: command not found6:
: command not found9:
This script bootstraps required libraries for selected environments.
: command not found11:
: command not found13:
: command not found16:
'ootstrap.sh: line 66: syntax error near unexpected token `{
'ootstrap.sh: line 66: `liblo() {

I get the same when running from iTerm (zsh) or Terminal. But tbh Im not a terminal wizard so maybe something could be wrong with my .zshrc or my .bash_profile?

from dimple.

radarsat1 avatar radarsat1 commented on September 3, 2024

Weird, I think this must be a problem with your git checkout. After seeing that it's complaining about "command not found" on empty lines, on a hunch I tried the following and got similar errors to you:

$ unix2dos bootstrap.sh 
unix2dos: converting file bootstrap.sh to DOS format...

$ bash bootstrap.sh 
bootstrap.sh: line 2: $'\r': command not found
bootstrap.sh: line 6: $'\r': command not found
bootstrap.sh: line 9: $'\r': command not found
This script bootstraps required libraries for selected environments.
bootstrap.sh: line 11: $'\r': command not found
bootstrap.sh: line 13: $'\r': command not found
bootstrap.sh: line 16: $'\r': command not found
bootstrap.sh: line 66: syntax error near unexpected token `$'{\r''
'ootstrap.sh: line 66: `liblo() {

so it seems that your git checkout has the wrong line endings (should be unix LF format, but git is converting it to CRLF). Any reason on your system that would happen? It's usually a Windows problem, not mac, so it's surprising. Does your git configuration have auto.crlf set?

$ git config --get auto.crlf

Does the script work for you if you change the line endings to unix?

$ dos2unix bootstrap.sh
$ bash bootstrap.sh

You'll need dos2unix installed (eg via homebrew) of course.. otherwise you can try,

$ tr -d '\r' < bootstrap.sh >fixed.sh

instead.

from dimple.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.