Skip to content
This repository was archived by the owner on Feb 27, 2018. It is now read-only.

Commit 56eaa53

Browse files
committed
Merge pull request #311 from SvenDowideit/remove-osx-library-paths
remove the library path before we exec
2 parents 57ccdb8 + 22ee883 commit 56eaa53

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

virtualbox/vbm.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,18 @@ import (
99
"os/exec"
1010
"path/filepath"
1111
"regexp"
12+
"runtime"
1213
"strings"
1314

1415
"github.com/boot2docker/boot2docker-cli/driver"
1516
)
1617

1718
func init() {
19+
if runtime.GOOS == "darwin" {
20+
// remove DYLD_LIBRARY_PATH and LD_LIBRARY_PATH as they break VBoxManage on OSX
21+
os.Setenv("DYLD_LIBRARY_PATH", "")
22+
os.Setenv("LD_LIBRARY_PATH", "")
23+
}
1824
}
1925

2026
var (

0 commit comments

Comments
 (0)