im trying to install docker lvm plugin given in this link and when I execute the make command it throws me the following error.
pr#pr-ubuntu:~/ba/docker-lvm-plugin$ make
go-md2man -in man/docker-lvm-plugin.8.md -out docker-lvm-plugin.8
/usr/bin/go build -o docker-lvm-plugin .
utils.go:14:2: cannot find package "github.com/docker/docker/pkg/system" in any of:
/usr/local/go/src/github.com/docker/docker/pkg/system (from $GOROOT)
/home/pr/programming/go/packages/src/github.com/docker/docker/pkg/system (from $GOPATH)
driver.go:10:2: cannot find package "github.com/docker/go-plugins-helpers/volume" in any of:
/usr/local/go/src/github.com/docker/go-plugins-helpers/volume (from $GOROOT)
/home/pr/programming/go/packages/src/github.com/docker/go-plugins-helpers/volume (from $GOPATH)
make: *** [lvm-plugin-build] Error 1
I believe its looking for docker go-plugin-helpers, I see those packages here but not sure how to install in my GOPATH.
https://github.com/docker/go-plugins-helpers
If you're trying to build a Go program, you should read the Go documentation, at least the basics. To install a package:
go get github.com/docker/go-plugins-helpers
Related
When I installed 7zip via home brew (Formula sevenzip), i noticed that i cannot run it via sevenzip and even brew info sevenzip did not tell me the name of the binary.
Only after looking in the script file on Github I noticed a command 7zz but there must be an easier way to find out the binaries or commands associated with a homebrew package.
The simplest I know is:
brew ls PACKAGE
and you can normally see it pretty quickly. Personally, I use p7zip as PACKAGE.
Alternatively, as brew --prefix tells you where binaries are installed (via symlinks), you can find the newest installed binary with:
ls -lrt $(brew --prefix)/bin
and it's the last one listed.
I am setuping ddev over my Mac OS 10.12.6 to access open source project. I am getting below error. I tried to find version which suit to this OS version but no luck. Can anyone help to fix this issue ? I am able to install docker-machine and docker compose.
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 6 formulae.
Warning: You are using macOS 10.12.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
old version.
==> Installing ddev from drud/ddev
==> Downloading https://github.com/drud/ddev/archive/v1.17.2.tar.gz
Already downloaded: /Users/aviboy2006/Library/Caches/Homebrew/downloads/614bf0b8c7b32d6a364c18be4e0b7d95a4466f1e552ebd4a68dc967c9717950e--ddev-1.17.2.tar.gz
==> make VERSION=v1.17.2 COMMIT=v1.17.2
Last 15 lines from /Users/aviboy2006/Library/Logs/Homebrew/ddev/01.make:
COMMIT=v1.17.2
fatal: Not a git repository (or any of the parent directories): .git
/bin/bash: go: command not found
/bin/bash: go: command not found
/bin/bash: go: command not found
/bin/bash: go: command not found
/bin/bash: go: command not found
/bin/bash: go: command not found
/bin/bash: go: command not found
/bin/bash: go: command not found
/bin/bash: go: command not found
/bin/bash: go: command not found
/bin/bash: go: command not found
make: *** No rule to make target `_', needed by `build'. Stop.
Do not report this issue to Homebrew/brew or Homebrew/core!
Error: You are using macOS 10.12.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
Homebrew does not support your os version, so you'll need to use the he install_ddev.sh technique. See the script installation technique at https://ddev.readthedocs.io/en/stable/
I imagine you'll also find that docker desktop doesn't support your os version though.
To install via sh script. Can run below script :
curl -LO https://raw.githubusercontent.com/drud/ddev/master/scripts/install_ddev.sh && bash install_ddev.sh
Followup: #aviboy2006 posted a complete tutorial on how to do ddev/docker on an old Mac: https://www.internetkatta.com/installation-of-ddev-docker-and-virtual-box-on-mac-os-10126
when you get to that stage run
curl -LO https://raw.githubusercontent.com/drud/ddev/master/scripts/install_ddev.sh && bash install_ddev.sh
checkout the documentation on dudes website1https://ddev.readthedocs.io/en/stable/
I'm using yocto 2.6 (thud) to customize my linux image and now I can use bitbake to generate an image with my own applications, the image runs well on the board.
Now I'm trying to populate the sdk and I do:
bitbake dey-image -c populate_sdk
then I have lots of warnings, like
The following packages have unmet dependencies:
apt-dev : Depends: apt (= 1.2.24-r0.1) but it is not going to be installed
Recommends: bash-dev
Recommends: libcurl-dev but it is not installable
hwmoniter-dev : Depends: hwmoniter (= git-r0.7) but it is not going to be installed
Recommends: libmosquitto1-dev but it is not installable
E: Unable to correct problems, you have held broken packages.
Summary: There was 1 WARNING message shown.
It seems that populate_sdk finally succeeded with warnings, the sdk (*.sh) is generate and it can be installed, but I can't find many header files I assumed to be there.
So what do the warnings mean? What's the difference between "not going to be installed" and "not installable"? How can I fix those warnings?
Thanks
I want to install MongoDB C++ Driver, so first is mongocxx
I follow this installation:
http://mongocxx.org/mongocxx-v3/installation/
but I can not pass step 4
when I run this in mongo-cxx-driver/build
sudo cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..
it shows
-- Auto-configuring bsoncxx to use MNMLSTC for polyfills since C++17 is inactive
CMake Error at src/mongocxx/CMakeLists.txt:37 (find_package):
By not providing "Findlibmongoc-1.0.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"libmongoc-1.0", but CMake did not find one.
Could not find a package configuration file provided by "libmongoc-1.0"
(requested version 1.13.0) with any of the following names:
[![enter image description here][1]][1]
libmongoc-1.0Config.cmake
libmongoc-1.0-config.cmake
Add the installation prefix of "libmongoc-1.0" to CMAKE_PREFIX_PATH or set
"libmongoc-1.0_DIR" to a directory containing one of the above files. If
"libmongoc-1.0" provides a separate development package or SDK, be sure it
has been installed.
second question,
Step 2: Choose a C++17 polyfill how can I set MNMLSTC/core?
does anyone can help me,I already trap here for a long time ?
my env:
mongo-c-driver 1.15.1
libmongoc-1.0
mongocxx-3.4.x
Cmake is complaining about not finding a package configuration file (xxx.cmake), probably because you didn't build libmongoc/libbson.
I've tried to reproduce your issue and hit the same problem when I only installed them (apt-get install), so my suggestion is that you get the sources and build them as described at: http://mongoc.org/libmongoc/current/installing.html
Here's the list of commands (with the latest version of mongo-c-driver=1.15.1) which I just tried and worked fine:
wget https://github.com/mongodb/mongo-c-driver/releases/download/1.15.1/mongo-c-driver-1.15.1.tar.gz
tar xzf mongo-c-driver-1.15.1.tar.gz
cd mongo-c-driver-1.15.1
mkdir cmake-build
cd cmake-build
cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF ..
make
sudo make install
At this point you can go back into mongocxx/build and run again the command you were stuck at:
cd ../../mongo-cxx-driver/build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..
I installed Go on my ubuntu 14.04 using Linux brew and then I have set GOPATH to $HOME/go. But after that i tried to install goauth package for go using go get command but still my code is not importing goauth package. After going through the error I decided to check the GOPATH. It is properly set but the goauth package is not getting installed in $HOME/go/src/code.google.com/p. Please suggest me a work around. Here is the error that I am getting.
dummy.go:5:8: cannot find package "code.google.com/p/goauth2/oauth" in any of:
/home/avinash/.linuxbrew/Cellar/go/1.4.2/libexec/src/code.google.com/p/goauth2/oauth (from $GOROOT)
/home/avinash/go/src/code.google.com/p/goauth2/oauth (from $GOPATH)
go/src/github.com/google/go-github/github/github.go:22:2: cannot find package "github.com/google/go-querystring/query" in any of:
/home/avinash/.linuxbrew/Cellar/go/1.4.2/libexec/src/github.com/google/go-querystring/query (from $GOROOT)
/home/avinash/go/src/github.com/google/go-querystring/query (from $GOPATH)