Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ibmmqmet committed Sep 10, 2020
1 parent 0d58d13 commit 02b10a0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@ For example,
At this point, you should have a compiled copy of the program in `$GOPATH/bin`. See the
`samples` directory for more sample programs.

### Build errors
If you get errors such as `cannot find package v5/ibmmq` then one solution is to go to
the repository directory itself: `cd ./src/github.com/ibm-messaging/mq-golang`. And
then compile directly from that directory: `go install ./ibmmq`, `go install ./samples/amqsput.go`.

An alternative is to set GOPATH to the directory you have tried to compile
from: `export GOPATH=$HOME/gowork`.

## Building in a container
The `buildSamples.sh` script in this directory can also be used to create a container which will
compile the samples and copy them to a local directory. If you use this approach, you do not need
Expand Down

0 comments on commit 02b10a0

Please sign in to comment.