View previous topic :: View next topic |
Author |
Message |
solamour l33t
Joined: 21 Dec 2004 Posts: 698 Location: San Diego, CA
|
Posted: Thu Dec 02, 2021 1:39 am Post subject: [Solved] Install fastlane fails: cannot find -lcrypt |
|
|
I'm trying to setup fastlane (https://docs.fastlane.tools/getting-started/android/setup/), and when I do "bundle update", I get the following error message.
Code: | "x86_64-pc-linux-gnu-gcc -o conftest -I/usr/include/ruby-2.5.0/x86_64-linux -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -march=btver2 -O2 -pipe -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib64 -L. -Wl,-O1 -Wl,--as-needed -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,--no-undefined -lruby25 -lpthread -lgmp -ldl -lcrypt -lm -lc"
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lcrypt
collect2: error: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */
|
I must be missing (static?) "crypt" library, but I'm not entirely sure what package to install. I'd appreciate any suggestions.
__
sol
Last edited by solamour on Fri Dec 03, 2021 6:39 pm; edited 1 time in total |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1678
|
Posted: Thu Dec 02, 2021 1:46 am Post subject: |
|
|
Using GCC 9.3 seems like an odd choice (9.4.0 is the latest in that series...)
Have you completed a full world update recently (especially the libxcrypt migration)? Could you share:
1. emerge -p -uvDU @world
2. emerge --info
Thanks. |
|
Back to top |
|
|
solamour l33t
Joined: 21 Dec 2004 Posts: 698 Location: San Diego, CA
|
Posted: Fri Dec 03, 2021 6:39 pm Post subject: |
|
|
I updated gcc to 11.2.0 (and did "emerge -v libtool; revdep-rebuild" just for good measure), and the problem went away. Thank you everyone for taking time to share your thoughts.
On a slightly unrelated topic, we seriously need the "upvote" feature here.
__
sol |
|
Back to top |
|
|
solamour l33t
Joined: 21 Dec 2004 Posts: 698 Location: San Diego, CA
|
Posted: Tue Dec 06, 2022 12:18 am Post subject: |
|
|
Not sure why, but "cannot find -lcrypt" came back when I tried "emerge -v systemd-utils", even though gcc was updated to the latest. I had to install "libxcrypt" to fix it.
Code: | emerge -v libxcrypt |
__
sol |
|
Back to top |
|
|
|