简体   繁体   中英

Why does OS X kill a process immediately executed in the terminal?

Weird error I'm getting attempting to run migrations from a CLI on my OS X.

When I attempt to run a migration it immediately kills the process.

I'm using golang's goose package to migrate up and I run goose create CreateUsers and I immediately get

[1] 18990 killed goose create CreateUsers

I've also tried running sql-migrate with sql-migrate up which is the same thing but from a different package and I get the same error.

In fact, if I shorten the commands to just goose for example, I run into the same problem. Bad install possibly?

I have created the databases and can access them.

Note

I'm looking for an explanation of why this might happen. Not necessarily package-specific, but more of a reason why Mac decides to terminate the process immediately.

Additional Note

Looks like it's a package error. It was a fork of a fork and the original package relies on a different version of golang.

Xcode update caused a problem with loading a core library in golang. Solution: update golang to 1.8.1

https://github.com/golang/go/issues/19734

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM