gcp-cups-connector 安装 archlinux arm
gcp-cups-connector install archlinux arm
为了在我的 ALARM 系统上安装 gcp-cups-connector,我已经尝试了几个小时。
这是 运行 mkpkg 的输出,后面是 'go env' 以显示我的变量。
[nw@NWCloud go]$ makepkg -A
==> Making package: gcp-cups-connector 2015.09.30.r2.g149c605-1 (Sun Oct 4 23:11:10 MDT 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Cloning gcp-cups-connector git repo...
Cloning into bare repository '/home/nw/go/gcp-cups-connector'...
remote: Counting objects: 1981, done.
remote: Compressing objects: 100% (38/38), done.
remote: Total 1981 (delta 13), reused 0 (delta 0), pack-reused 1940
Receiving objects: 100% (1981/1981), 740.91 KiB | 804.00 KiB/s, done.
Resolving deltas: 100% (1002/1002), done.
Checking connectivity... done.
-> Cloning gcp-cc-service git repo...
Cloning into bare repository '/home/nw/go/gcp-cc-service'...
remote: Counting objects: 13, done.
remote: Total 13 (delta 0), reused 0 (delta 0), pack-reused 13
Unpacking objects: 100% (13/13), done.
Checking connectivity... done.
==> Validating source files with md5sums...
gcp-cups-connector ... Skipped
gcp-cc-service ... Skipped
==> Extracting sources...
-> Creating working copy of cups-connector git repo...
Cloning into 'gcp-cups-connector'...
done.
-> Creating working copy of gcp-cups-connector-systemd git repo...
Cloning into 'gcp-cc-service'...
done.
==> Starting pkgver()...
==> Starting build()...
github.com/google/cups-connector (download)
cd .
git clone https://github.com/google/cups-connector /home/nw/go/src/src/github.com/google/cups-connector
cd /home/nw/go/src/src/github.com/google/cups-connector
git show-ref
cd /home/nw/go/src/src/github.com/google/cups-connector
git checkout master
package github.com/google/cups-connector/connector: cannot find package "github.com/google/cups-connector/connector" in any of:
/usr/lib/go/src/github.com/google/cups-connector/connector (from $GOROOT)
/home/nw/go/src/src/github.com/google/cups-connector/connector (from $GOPATH)
==> ERROR: A failure occurred in build().
Aborting...
[nw@NWCloud go]$ go env
GOARCH="arm"
GOBIN=""
GOEXE=""
GOHOSTARCH="arm"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/nw/go"
GORACE=""
GOROOT="/usr/lib/go"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_arm"
GO15VENDOREXPERIMENT=""
CC="gcc"
GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
[nw@NWCloud go]$
我正在使用 AUR 中提供的 PKGBUILD,但也尝试从 GitHub 上的安装指南中的源代码编译它...运气不好。
编辑 PKGBUILD(例如从 aur 安装时)并用此替换 build() 函数:
build() {
GOPATH="$srcdir" go get -fix -v -x ${_gourl}/gcp-cups-connector
GOPATH="$srcdir" go get -fix -v -x ${_gourl}/gcp-cups-connector-util
}
还要检查依赖项。这个 PKGBUILD 缺少以下依赖项:cups、net-snmp、avahi、git、bzr
为了在我的 ALARM 系统上安装 gcp-cups-connector,我已经尝试了几个小时。
这是 运行 mkpkg 的输出,后面是 'go env' 以显示我的变量。
[nw@NWCloud go]$ makepkg -A
==> Making package: gcp-cups-connector 2015.09.30.r2.g149c605-1 (Sun Oct 4 23:11:10 MDT 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Cloning gcp-cups-connector git repo...
Cloning into bare repository '/home/nw/go/gcp-cups-connector'...
remote: Counting objects: 1981, done.
remote: Compressing objects: 100% (38/38), done.
remote: Total 1981 (delta 13), reused 0 (delta 0), pack-reused 1940
Receiving objects: 100% (1981/1981), 740.91 KiB | 804.00 KiB/s, done.
Resolving deltas: 100% (1002/1002), done.
Checking connectivity... done.
-> Cloning gcp-cc-service git repo...
Cloning into bare repository '/home/nw/go/gcp-cc-service'...
remote: Counting objects: 13, done.
remote: Total 13 (delta 0), reused 0 (delta 0), pack-reused 13
Unpacking objects: 100% (13/13), done.
Checking connectivity... done.
==> Validating source files with md5sums...
gcp-cups-connector ... Skipped
gcp-cc-service ... Skipped
==> Extracting sources...
-> Creating working copy of cups-connector git repo...
Cloning into 'gcp-cups-connector'...
done.
-> Creating working copy of gcp-cups-connector-systemd git repo...
Cloning into 'gcp-cc-service'...
done.
==> Starting pkgver()...
==> Starting build()...
github.com/google/cups-connector (download)
cd .
git clone https://github.com/google/cups-connector /home/nw/go/src/src/github.com/google/cups-connector
cd /home/nw/go/src/src/github.com/google/cups-connector
git show-ref
cd /home/nw/go/src/src/github.com/google/cups-connector
git checkout master
package github.com/google/cups-connector/connector: cannot find package "github.com/google/cups-connector/connector" in any of:
/usr/lib/go/src/github.com/google/cups-connector/connector (from $GOROOT)
/home/nw/go/src/src/github.com/google/cups-connector/connector (from $GOPATH)
==> ERROR: A failure occurred in build().
Aborting...
[nw@NWCloud go]$ go env
GOARCH="arm"
GOBIN=""
GOEXE=""
GOHOSTARCH="arm"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/nw/go"
GORACE=""
GOROOT="/usr/lib/go"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_arm"
GO15VENDOREXPERIMENT=""
CC="gcc"
GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
[nw@NWCloud go]$
我正在使用 AUR 中提供的 PKGBUILD,但也尝试从 GitHub 上的安装指南中的源代码编译它...运气不好。
编辑 PKGBUILD(例如从 aur 安装时)并用此替换 build() 函数:
build() {
GOPATH="$srcdir" go get -fix -v -x ${_gourl}/gcp-cups-connector
GOPATH="$srcdir" go get -fix -v -x ${_gourl}/gcp-cups-connector-util
}
还要检查依赖项。这个 PKGBUILD 缺少以下依赖项:cups、net-snmp、avahi、git、bzr