How to install musl libc on Fedora 21 Linux?

It seems Fedora 21 does not ship with musl-libc. How to install musl libc on Fedora 21 Linux?

First, download musl libc source package from its download page: http://www.musl-libc.org/download.html . Here we use 1.1.5 as the example.

After unpacking the source package, configure and build it by

$ ./configure
$ make

Then, install it by

# make install

Note that musl libc is installed into /usr/local/musl and you need to add

/usr/local/musl/bin

to your $PATH so that you can invoke musl-gcc directly.

Answered by Eric Z Ma.

Eric Z Ma

Eric is a father and systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

Leave a Reply

Your email address will not be published. Required fields are marked *