LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-22-2017, 03:13 PM   #1
mpregos
Member
 
Registered: Oct 2006
Location: Greece
Distribution: Slackware
Posts: 64

Rep: Reputation: 16
Fail to install runc package( ... for docker)


Hi ppl

I want to install docker for my slackare 14.2 x86_64, although i have difficulties installing prerequisity package "runc" and the error it is when using the Go lang ot build it.

Error while installing runc
Code:
go build -i -gccgoflags "-X main.gitCommit=810190ceaa507aa2727d7ae6f4790c76ec150bd2 -X main.version=1.0.0-rc3" -tags "seccomp" -o runc .
build/src/github.com/opencontainers/runc/libcontainer/utils/cmsg.go:25:2: C source files not allowed when not using cgo: gccgo_c.c
Makefile:28: recipe for target 'runc' failed
make: *** [runc] Error 1
My environment var of Go lang
Code:
GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH=""
GORACE=""
GOROOT="/usr/lib64/go1.8.4/go"
GOTOOLDIR="/usr/libexec/gcc/x86_64-slackware-linux/5.3.0"
CC="/usr/bin/gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="/usr/bin/g++"
CGO_ENABLED="1"
I didn't find at google something that worked....

Does anybody knows what is going on here???
and how could i solve the problem???
 
Old 10-22-2017, 03:29 PM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,873

Rep: Reputation: Disabled
I just tried building it (with all the dependencies) and it went fine: could it be you haven't logged out and logged it again after installing google-go-lang? its package contains files that get installed in /etc/profile.d and that must be loaded in your shell (they will automatically at login).

Last edited by ponce; 10-22-2017 at 03:30 PM.
 
Old 10-22-2017, 03:55 PM   #3
mpregos
Member
 
Registered: Oct 2006
Location: Greece
Distribution: Slackware
Posts: 64

Original Poster
Rep: Reputation: 16
Ponce....nop ....didn't worked)
 
Old 10-22-2017, 04:16 PM   #4
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,873

Rep: Reputation: Disabled
I would try:
- removing google-go-lang from your system;
- rebuild and reinstall google-go-lang from SBo;
- logout from root;
- relogin as root or become root with "su -" (note the space and the dash after the su command);
- from the just opened root shell build and install from SBo in this order: tini, docker-proxy, libseccomp, runc, containerd and docker.
these steps worked fine on a slackware64-14.2 full and up-to-date installation.

Last edited by ponce; 10-22-2017 at 04:44 PM.
 
2 members found this post helpful.
Old 10-22-2017, 04:55 PM   #5
mpregos
Member
 
Registered: Oct 2006
Location: Greece
Distribution: Slackware
Posts: 64

Original Poster
Rep: Reputation: 16
ponce

Thanks man.... it looks that the login/logout step must be performed by switching to init lvl 3 and then to init lvl 4
and the command 'su -'...... (as far as i know the dash in this command mean that switch to the user and navigate to his Home directory...or not????)


Again...Thaks

Last edited by mpregos; 10-22-2017 at 05:01 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to install Docker and run Docker containers on Linux Mint 18/18.1 LXer Syndicated Linux News 1 12-13-2016 11:11 AM
LXer: How to install Docker and run Docker containers on Fedora 25 LXer Syndicated Linux News 0 12-07-2016 12:24 AM
LXer: Docker 1.11 Debuts with runC, Supports IPv6 LXer Syndicated Linux News 0 04-14-2016 02:33 AM
Fail to install package joboy Ubuntu 6 06-24-2012 11:34 AM
[SOLVED] Fail webmin install, E: Package webmin has no installation candidate cK` Linux - Newbie 10 04-07-2010 02:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration