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

make: *** [Makefile:137: install] Error 1 #73

Closed
centralhardware opened this issue Jan 30, 2024 · 4 comments
Closed

make: *** [Makefile:137: install] Error 1 #73

centralhardware opened this issue Jan 30, 2024 · 4 comments

Comments

@centralhardware
Copy link

I am trying to build latest version from master and get following erro

 => ERROR [builder 8/8] RUN make install  DESTDIR=/app                                                                                                                       0.4s 
------                                                                                                                                                                            
 > [builder 8/8] RUN make install  DESTDIR=/app:                                                                                                                                  
0.353 mkdir -p /app/usr/bin                                                                                                                                                       
0.354 mkdir -p /app/usr/sbin                                                                                                                                                      
0.354 mkdir -p /app/htdocs
0.355 mkdir -p $(dirname /app)
0.356 install contrib/tzdatadb/timezone16.bin 
0.359 BusyBox v1.36.1 (2023-11-07 18:53:09 UTC) multi-call binary.
0.359 
0.359 Usage: install [-cdDsp] [-o USER] [-g GRP] [-m MODE] [-t DIR] [SOURCE]... DEST
0.359 
0.359 Copy files and set attributes
0.359 
0.359 	-c	Just copy (default)
0.359 	-d	Create directories
0.359 	-D	Create leading target directories
0.359 	-s	Strip symbol table
0.359 	-p	Preserve date
0.359 	-o USER	Set ownership
0.359 	-g GRP	Set group ownership
0.359 	-m MODE	Set permissions
0.359 	-t DIR	Install to DIR
0.359 make: *** [Makefile:137: install] Error 1
------
Dockerfile:28
--------------------
  26 |     RUN make -j $(nprocs)
  27 |     RUN mkdir /app
  28 | >>> RUN make install  DESTDIR=/app
  29 |     
  30 |     FROM alpine
--------------------
ERROR: failed to solve: process "/bin/sh -c make install  DESTDIR=/app" did not complete successfully: exit code: 2
@jpmens
Copy link
Member

jpmens commented Jan 30, 2024

Sorry about that. My bad: I omitted adding TZDATADB to config.mk.in:

# Where will the recorder find the TZ data file?
TZDATADB = /usr/share/owntracks/recorder/timezone16.bin

could you please add that to your config.mk?

jpmens added a commit to owntracks/recorder that referenced this issue Jan 30, 2024
@jpmens
Copy link
Member

jpmens commented Jan 30, 2024

After successful build there should be a file timezone16.bin in /usr/share/owntracks/recorder/, and when you launch the recorder you should see a diagnostic message indicating it’s using that file.

Querying the recorder via the API will surface two new fields as described here

@centralhardware
Copy link
Author

working now, thank you

@jpmens
Copy link
Member

jpmens commented Jan 30, 2024

Thank you for reporting back!

ippocratis added a commit to ippocratis/docker-recorder that referenced this issue Feb 4, 2024
The config.mk should reflect owntracks/recorder@25cb0c3 so that the Dockerfile is buildable owntracks#73 (comment)
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

2 participants