owntone / owntone-server

Linux/FreeBSD DAAP (iTunes) and MPD audio server with support for AirPlay 1 and 2 speakers (multiroom), Apple Remote (and compatibles), Chromecast, Spotify and internet radio.
https://owntone.github.io/owntone-server
GNU General Public License v2.0
2.05k stars 235 forks source link

May I suggest elaborating homebrew install #1805

Closed LordMyschkin closed 1 week ago

LordMyschkin commented 1 week ago

Someone should please guide users through the process of Installing on homebrew. Even after lots of googling and creating a whole bunch of access tokens, I am not able to run the workflow. I am sure this is very smart - if you know how to do it. But I (more an experienced user than a developer) am struggling using this tool - and just find now clue...

ejurgensen commented 1 week ago

Hi @LordMyschkin, I'm not sure what you mean by "installing on homebrew"? Do you mean installing on Mac OS using Homebrew (the package manager)?

If so, it's more simple than what you might have been trying to do. You don't need to run the workflow yourself, you just read it as a recipe. Or consider each "run" as commands for a script, so the install process becomes this (note the below is non-root OwnTone, so it is installed in $HOME including its data):

brew install automake autoconf libtool pkg-config
brew install gperf bison flex
sudo ln -s "$(brew --prefix)/opt/bison/bin/bison" /usr/local/bin/bison
sudo ln -s "$(brew --prefix)/opt/flex/bin/flex" /usr/local/bin/flex
git clone https://github.com/libinotify-kqueue/libinotify-kqueue
cd libinotify-kqueue
autoreconf -fvi
./configure
make
sudo make install
cd ..
brew install libunistring confuse libplist libwebsockets libevent libgcrypt json-c protobuf-c libsodium gnutls pulseaudio openssl ffmpeg sqlite
export CFLAGS="-I$(brew --prefix)/include -I$(brew --prefix sqlite)/include"
export LDFLAGS="-L$(brew --prefix)/lib -L$(brew --prefix sqlite)/lib"
autoreconf -fi
./configure --prefix=$HOME/owntone_data/usr --sysconfdir=$HOME/owntone_data/etc --localstatedir=$HOME/owntone_data/var --enable-chromecast --with-pulseaudio
make
make install
LordMyschkin commented 1 week ago

that indeed is easy. since in the documentation, it says "This workflow file used for building OwnTone via Github actions includes all the steps that you need to execute: .github/workflows/macos.yml" - so i was thinking of this workflow as some kind of automatic install script with special github magic :-) Obviously, there was just a knot in my very own thinking - I am glad noone knows how may hours I spent trying to install it to my MacBook by running this workflow without any change happening on my side.... Thanks for the quick support!

ejurgensen commented 1 week ago

Glad to hear it worked. Let me know if you have a suggestion for a wording that is more clear.

LordMyschkin commented 1 week ago

Although I had to do some extra steps. My brand new installation of sonoma wanted me to install libavcodecs and some other stuff, so I installed ffmpeg via brew first. And - just in case someone else struggles here - make could not find m4, only the installation of the command line xtools from https://developer.apple.com/download/all/?q=command%20line%20tools solved that (neither installing it autmatically nor by homebrew).

LordMyschkin commented 5 days ago

I wrote a Wiki Page - basically repeating the steps from above and explaining why it failed and where I found problems. https://github.com/owntone/owntone-server/wiki/Installing-on-MacOS-(14.7)