Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Install fastlane fails: cannot find -lcrypt
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 698
Location: San Diego, CA

PostPosted: Thu Dec 02, 2021 1:39 am    Post subject: [Solved] Install fastlane fails: cannot find -lcrypt Reply with quote

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
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1678

PostPosted: Thu Dec 02, 2021 1:46 am    Post subject: Reply with quote

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
View user's profile Send private message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 698
Location: San Diego, CA

PostPosted: Fri Dec 03, 2021 6:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 698
Location: San Diego, CA

PostPosted: Tue Dec 06, 2022 12:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum