-
Hey folks, I am currently trying to build syslog from source on a M1 Mac, but it fails if I try to run the configure script. I followed the available instructions, on how to build syslog-ng on Mac. The CLI tells me:
I tried it with Apples clang compiler and I also installed a gcc version via brew. But I always got the same result. :( And that's the error:
Maybe someone knows what I am doing wrong here? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
I do not have an ARM64 mac, just an old Intel MacBook Pro. I followed the instructions from https://www.syslog-ng.com/community/b/blog/posts/syslog-ng-on-macos-ventura and was able to build both syslog-ng 4.0.1 and the latest git snapshot. For 4.0.1 I started out from the release tgz: wget https://github.com/syslog-ng/syslog-ng/releases/download/syslog-ng-4.0.1/syslog-ng-4.0.1.tar.gz For the git snapshot is used syslog-ng dbld to build a release tgz on Linux and then copied the tgz to my aging Mac. From the configure output I guess you did the same (it mentions 4.0.1.222.dirty as version, which is a release name dbld gives to locally modified git snapshots). On the Mac I started bash (yes, I'm too much a Linux user :-) ), extracted the source and then:
Then I repeated the process for the git snapshot. The only difference was the configure --prefix argument:
note: directory names are different on the ARM macs In the end:
|
Beta Was this translation helpful? Give feedback.
-
Have you installed the Xcode command line tools? |
Beta Was this translation helpful? Give feedback.
-
Yeah. As you can see from the list of packages I installed, I have a full Xcode installation and did not install compiler tools from Homebrew. |
Beta Was this translation helpful? Give feedback.
-
I got it working, after a bit of fiddling around. But I don't know exactly what I did wrong, but it is working! Steps I did:
Thx for your help. Edit: |
Beta Was this translation helpful? Give feedback.
I do not have an ARM64 mac, just an old Intel MacBook Pro. I followed the instructions from https://www.syslog-ng.com/community/b/blog/posts/syslog-ng-on-macos-ventura and was able to build both syslog-ng 4.0.1 and the latest git snapshot.
For 4.0.1 I started out from the release tgz: wget https://github.com/syslog-ng/syslog-ng/releases/download/syslog-ng-4.0.1/syslog-ng-4.0.1.tar.gz
For the git snapshot is used syslog-ng dbld to build a release tgz on Linux and then copied the tgz to my aging Mac. From the configure output I guess you did the same (it mentions 4.0.1.222.dirty as version, which is a release name dbld gives to locally modified git snapshots).
On the Mac I started bash (yes…