Looks like they are assuming GNU make.


Try doing the build with 'gmake'.


If you don't already have gmake installed:


# pkg_add gmake

On Thu, Sep 19, 2019 at 11:49:20PM +0200, Rachel Roch wrote:
> Hi,
> 
> The official Prometheus github repo 
> (https://github.com/prometheus/node_exporter) 
> <https://github.com/prometheus/node_exporter> appears to suggest in multiple 
> places that node_exporter is capable of working on OpenBSD.
> 
> But although they provide pre-compiled binaries for multiple platforms 
> including NetBSD (https://github.com/prometheus/node_exporter/releases) 
> <https://github.com/prometheus/node_exporter/releases> they seemingly don't 
> provide a binary for OpenBSD.
> 
> So I tried downloading the source and compiling it, but I get a screenful of 
> nasty sounding messages, e.g.:
> Bad modifier: , ,$(shell $(GO) env GOPATH)))                                  
>                                                                
> Bad modifier: , ,$(shell $(GO) env GOPATH)))                                  
>                                                                
> No closing parenthesis in archive specification                               
>                                                                
> *** Parse error: Error in archive specification: "(, \.'))" 
> (Makefile.common:41)                                                          
>    
> *** Parse error: Need an operator in 'else' (Makefile.common:51)              
>                                                                
> *** Parse error: Need an operator in '' (Makefile.common:54)                  
>                                                                
> *** Parse error: Need an operator in '' (Makefile.common:55)                  
>                                                                
> *** Parse error: Need an operator in 'endif' (Makefile.common:61)             
>                                                                
> Bad modifier: , ,$(shell go env GOPATH)))                                     
>                                                                
> Bad modifier: , ,$(shell go env GOPATH))) 
> 
> 
> Given the popularity of Prometheus, I'm sure someone on-list must be actively 
> running it ?
> 
> Thanks !
> 
> Rachel
> 

Reply via email to