support build on Amazon Linux(or centos, redhat linux)
See original GitHub issuethought this should be quite similar to build on Ubuntu, tried for hours but failed
my efforts include:
- install build prerequisites by:
sudo yum groupinstall "Development Tools"
- upgrade cmake by:
pip3 install cmake --upgrade
- create symbolic link for ninjia-build by:
ln -s /usr/bin/ninja-build /usr/bin/ninja
- install nss by:
sudo yum install libnss3.so libnssutil3.so
- add search path(
/usr/lib/
) for lib nss in curl-impersonate.patch#:-+ search_paths="/usr/lib/$host /usr/lib/$host/nss" ++ search_paths="/usr/lib/ /usr/lib/$host /usr/lib/$host/nss"
still failed when doing make firefox-build
, the log suggested failed linking NSS:
configure: WARNING: Using hard-wired libraries and compilation flags for NSS.
checking if libnssckbi is in a non-standard location... /usr/lib
checking for SSL_VersionRangeSet in -lnss_static... no
configure: error: Failed linking NSS statically
Makefile:198: recipe for target 'curl-7.81.0/.firefox' failed
make: *** [curl-7.81.0/.firefox] Error 1
the related log in ./curl-7.81.0/config.log
is:
...
configure:26797: checking if libnssckbi is in a non-standard location
configure:26815: result: /usr/lib
configure:26843: checking for SSL_VersionRangeSet in -lnss_static
configure:26865: gcc -o conftest -I/home/ec2-user/apps/curl-impersonate/buil
d/nss-3.75/dist/Release/../public/nss -I/home/ec2-user/apps/curl-impersonate
/build/nss-3.75/dist/Release/include/nspr -Werror-implicit-function-declarat
ion -O2 -Wno-system-headers -I/home/ec2-user/apps/curl-impersonate/build/
brotli-1.0.9/out/installed/include -I/home/ec2-user/apps/curl-impersonate/bu
ild/nss-3.75/dist/Release/include -L/home/ec2-user/apps/curl-impersonate/bui
ld/nss-3.75/dist/Release/lib -Wl,-rpath,/usr/lib -L/home/ec2-user/apps/cu
rl-impersonate/build/brotli-1.0.9/out/installed/lib conftest.c -lnss_static
-Wl,--start-group -lssl -lnss_static -lpk11wrap_static -lcertdb -lcerthi -l
nsspki -lnssdev -lsoftokn_static -lfreebl_static -lnssutil -lnssb -lcryptohi
-l:libplc4.a -l:libplds4.a -l:libnspr4.a -lsqlite -lgcm-aes-x86_c_lib -lhw-
acc-crypto-avx -lhw-acc-crypto-avx2 -lsha-x86_c_lib -lintel-gcm-wrap_c_lib -
lintel-gcm-s_lib -Wl,--end-group -pthread -ldl -lbrotlidec-static -lbrotlico
mmon-static -lz >&5
/usr/bin/ld: cannot find -lbrotlidec-static
/usr/bin/ld: cannot find -lbrotlicommon-static
collect2: error: ld returned 1 exit status
configure:26865: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "curl"
| #define PACKAGE_TARNAME "curl"
| #define PACKAGE_VERSION "-"
| #define PACKAGE_STRING "curl -"
| #define PACKAGE_BUGREPORT "a suitable curl mailing list: https://curl.se/mail/"
...
any help is appreciated
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Red Hat Enterprise Linux on Amazon EC2 FAQs
No, Red Hat Enterprise Linux on Amazon EC2 is maintained by Red Hat and is identical to the version of Red Hat Enterprise...
Read more >EC2 Image Builder adds support for Ubuntu, RHEL, CentOS ...
EC2 Image Builder adds support for Ubuntu, RHEL, CentOS, and SLES. EC2 Image Builder, a service that makes it easier and faster to...
Read more >Step 1: Launch and configure an Amazon Linux or Red Hat ...
Follow the steps in this topic to launch, configure, and connect to an Amazon Linux or Red Hat Enterprise Linux (RHEL) Amazon EC2...
Read more >Enable the EPEL repository for EC2 instances running ... - AWS
I have an Amazon Elastic Compute Cloud (Amazon EC2) instance running CentOS, Red Hat Enterprise Linux (RHEL), or Amazon turn on access to...
Read more >Linux on AWS
Find, buy, and deploy Linux on AWS · Amazon Linux · CentOS · Debian · Kali Linux · Red Hat · SUSE ·...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve added the necessary fixes to make it work on Amazon Linux & Fedora.
Seems like the actual issue is with linking with libbrotli, not NSS. Do you have
.a
files in/home/ec2-user/apps/curl-impersonate/build/brotli-1.0.9/out/installed/lib
? The curl build looks forlibbrotlidec-static.a
andlibbrotlicommon-static.a
.