question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Troubles with build.sh

See original GitHub issue

Hello, I am trying to run npm run dev but I am having with the build.sh script on a Mac.

This is what I get:

Copying assets
rsync: -avrs: unknown option
rsync error: syntax or usage error (code 1) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-51/rsync/main.c(1337) [client=2.6.9]
Copying index.html and test.html
./build.sh: line 13: md5sum: command not found
Cachebusting js/css URLs
sed: 1: "mopidy_iris/static/inde ...": invalid command code m
sed: 1: "mopidy_iris/static/inde ...": invalid command code m
sed: 1: "mopidy_iris/static/test ...": invalid command code m
sed: 1: "mopidy_iris/static/test ...": invalid command code m
sed: 1: "mopidy_iris/static/test ...": invalid command code m
Done!

Building process would be more stable for all operating systems if it would be entirely handled by Webpack. What do you think?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lukecycacommented, Sep 25, 2017

sed: 1: “mopidy_iris/static/inde …”: invalid command code m

Macs have BSD sed, but the build.sh is using syntax for GNU sed. They differ slightly in how they interpret the -i switch. The following syntax works consistently on both versions:

sed -i='' 's/BUILD_HERE/'$BUILD'/g' mopidy_iris/static/index.html
0reactions
jaedbcommented, Oct 1, 2017

@bglowacki Good idea!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues - GitHub
Look for anything in the build log that is trying to install an openocd directory in $RISCV/bin. If you have a previous failed...
Read more >
build/build.sh: No such file or directory (#4459) - gitlab-runner
No tasks are currently assigned. Use tasks to break down this issue into smaller parts. Linked items. 0.
Read more >
Common Build Problems - Travis CI Docs
If your build is failing due to unexpected segmentation faults in the language interpreter, this may be caused by corrupt or invalid caches...
Read more >
Permission denied for build.sh file - travis ci - Stack Overflow
Looks like you need to check in the file build.sh with execution permissions. Please try the following from your own machine:
Read more >
Building for OSX: Problem with Build.sh - Unreal Engine Forums
My git username is uclatommy. Problem was resolved by: Copy the whole UnrealEngine directory to my boot disk. Delete the project file.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found