Cabal: option `--lib' is ambiguous; could be one of:

I get this message on Linux, what can/should I do? Thanks 4 help!

~$ cabal install tidal --lib
cabal: option `--lib' is ambiguous; could be one of:
--libdir=DIR installation directory for libraries
--libsubdir=DIR subdirectory of libdir in which libs are
installed
--libexecdir=DIR installation directory for program
executables
--libexecsubdir=DIR subdirectory of libexecdir in which private
executables are installed
--library-profiling-detail=level Profiling detail level for libraries only.

Perhaps you have an old version of cabal?

What does cabal --version report?

also, what distro?

Linux Mint.
I think the the ubuntu/debian Linux line

~$ cabal --version
cabal-install version 2.4.0.0
compiled using version 2.4.0.1 of the Cabal library 
~$ 

This may be of interest to you:

Based on the task that installs tidal,

cabal install tidal

Should be ample

Thanks, that works. I think I am not the only one to trip over this dispensable "--lib"
I recommend to wipe the problematic "--lib" in the manual.
Thanks

1 Like

I am new to Tidal and thankful for any help! Many thanks for pointing me to:

1 Like

The problem is that the options depend on the cabal version - starting with cabal 3.0 they changed how cabal makes "projects", which complicates Tidal installation.

Eventually a remark to check the cabal-version (cabal --version) in advance and then fork to the proper command can help?
Thanks