Comments (3)
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.
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.
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)
- Mass <= 0 bombs HOT 1
- Re-establish cursor after world clear HOT 1
- World/clear and gravity HOT 2
- Grab to object -- too soft? HOT 3
- Update of liblo version needed HOT 4
- Dimple bombs if opened after PD wall HOT 1
- Destroy of constrained object bombs HOT 3
- Additional cursor data HOT 3
- Color transparency HOT 1
- This is a test issue. HOT 1
- Can't get DIMPLE working properly HOT 15
- Create Mesh doesn't work properly HOT 3
- How to get the current camera position? HOT 2
- How to color objects? HOT 2
- Weird behaviour of the green haptic input ball/cursor HOT 2
- External paths not working (w/OSX in particular?) HOT 2
- Some force or force/magnitude queries not working HOT 1
- velocity/magnitude returning 0 HOT 3
- Missing cup.obj + conflict re .3ds and .obj HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dimple.