Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

continentmap.go make not found Ubuntu 20.04 #4

Closed
Dark-Schnitzel opened this issue May 19, 2020 · 5 comments
Closed

continentmap.go make not found Ubuntu 20.04 #4

Dark-Schnitzel opened this issue May 19, 2020 · 5 comments

Comments

@Dark-Schnitzel
Copy link

@Dark-Schnitzel Dark-Schnitzel commented May 19, 2020

OS: Ubuntu 20.04
go: 1.13.8

Hello, i tried to build the server but unfortunately continentmap.go cant be found. i also havent found this file under /src/signaling

root@ubuntu-1:/home/hank/nextcloud-spreed-signaling-master# make build [ ! -d "/home/hank/nextcloud-spreed-signaling-master/.git/hooks" ] || ln -sf "/home/hank/nextcloud-spreed-signaling-master/scripts/pre-commit.hook" "/home/hank/nextcloud-spreed-signaling-master/.git/hooks/pre-commit" GOPATH="/home/hank/nextcloud-spreed-signaling-master/vendor:/home/hank/nextcloud-spreed-signaling-master" /usr/bin/go get github.com/rogpeppe/godeps /home/hank/nextcloud-spreed-signaling-master/scripts/get_continent_map.py src/signaling/continentmap.go make: /home/hank/nextcloud-spreed-signaling-master/scripts/get_continent_map.py: Command not found make: *** [Makefile:56: src/signaling/continentmap.go] Error 127

@morph027
Copy link
Contributor

@morph027 morph027 commented May 19, 2020

Probably due to the error: Command not found make

If you'r running docker (anyone should ;)), try this:

docker run --rm -it --name golang golang:latest
apt-get update && apt-get -y install python3
go get github.com/strukturag/nextcloud-spreed-signaling
cd src/github.com/strukturag/nextcloud-spreed-signaling/
make build
# leave terminal open
# in another terminal window
docker cp golang:/go/src/github.com/strukturag/nextcloud-spreed-signaling/bin/signaling .
# now exit your docker container

@morph027
Copy link
Contributor

@morph027 morph027 commented May 19, 2020

I've setup a package repo for ubuntu which includes the latest build: https://gitlab.com/packaging/nextcloud-spreed-signaling

@Dark-Schnitzel
Copy link
Author

@Dark-Schnitzel Dark-Schnitzel commented May 19, 2020

Okay, its an ubuntu installation without docker.
i tried "go get github.com/strukturag/nextcloud-spreed-signaling" and got this:
root@ubuntu-1:/home/hank# go get github.com/strukturag/nextcloud-spreed-signaling package github.com/strukturag/nextcloud-spreed-signaling: no Go files in /root/go/src/github.com/strukturag/nextcloud-spreed-signaling

afterwards in that directory i get the same build error

@Dark-Schnitzel
Copy link
Author

@Dark-Schnitzel Dark-Schnitzel commented May 19, 2020

The Package seems to work, good job, service is up and running.
Steps after Installation needed:
create /etc/signaling
copy server.config.in to /etc/signaling

@Dark-Schnitzel Dark-Schnitzel changed the title continentmap.go not found Ubuntu 20.04 continentmap.go make not found Ubuntu 20.04 May 19, 2020
@fancycode
Copy link
Member

@fancycode fancycode commented May 20, 2020

The continentmap.go file is generated by the script in https://github.com/strukturag/nextcloud-spreed-signaling/blob/master/scripts/get_continent_map.py

It uses Python to run, so most likely you don't have that installed and therefore get the Command not found error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants