Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot make #3

Open
JackChuang opened this issue Jun 29, 2016 · 5 comments
Open

cannot make #3

JackChuang opened this issue Jun 29, 2016 · 5 comments

Comments

@JackChuang
Copy link

http://apache.techartifact.com/ is down

@mazharshaikh86
Copy link

ApacheBench-ab# cat Makefile
all: libapr ab apr-skeleton

libapr:
make -C ./apr/ all

apr-skeleton: apr-skeleton.c
#gcc apr-skeleton.c -o apr-skeleton -I./apr/aprutil-build/include/apr-1/ -I./apr/apr-build/include/apr-1/ -L./apr/apr-build/lib/ -static -lapr-1 -Wl,-Bdynamic -lpthread -lc -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE
gcc apr-skeleton.c -o apr-skeleton -I./apr/aprutil-build/include/apr-1/ -I./apr/apr-build/include/apr-1/ -L./apr/apr-build/lib/ -lapr-1 -lpthread -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE

ab: ab.c ap_release.h

gcc ab.c ap_release.h -o ab -I./apr/aprutil-build/include/apr-1/ -I./apr/apr-build/include/apr-1/ -L./apr/apr-build/lib/ -L./apr/aprutil-build/lib/ -static -lapr-1 -laprutil-1 -Wl,-Bdynamic -lm -lc -lpthread -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE

gcc ab.c ap_release.h -o ab -I./apr/aprutil-build/include/apr-1/ -I./apr/apr-build/include/apr-1/ -L./apr/apr-build/lib/ -L./apr/aprutil-build/lib/ -lapr-1 -laprutil-1 -lm -lpthread -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE

clean:
make -C ./apr/ clean
rm ab apr-skeleton abMazhar

ApacheBench-ab# cat apr/Makefile
APR=apr-1.5.2
APRUTIL=apr-util-1.5.4

all:$(APR) $(APRUTIL) buildapr

$(APR):
#wget http://apache.techartifact.com/mirror//apr/$(APR).tar.gz
wget --no-check-certificate https://www.apache.org/dist/apr/$(APR).tar.gz
tar -xf $(APR).tar.gz
$(APRUTIL):
#wget http://apache.techartifact.com/mirror//apr/$(APRUTIL).tar.gz
wget --no-check-certificate https://www.apache.org/dist/apr/$(APRUTIL).tar.gz
tar -xf $(APRUTIL).tar.gz

buildapr:
cp Makefile_apr $(APR)
make -C $(APR) -f Makefile_apr
cp Makefile_aprutil $(APRUTIL)
make -C $(APRUTIL) -f Makefile_aprutil

clean:
rm -rf apr-*
rm -rf aprutil-*

@ghost
Copy link

ghost commented Sep 26, 2020

http://apache.techartifact.com/ is down

+1

@ghost
Copy link

ghost commented Sep 26, 2020

Except the site http://apache.techartifact.com where can download the apr source code.

@rethab
Copy link

rethab commented Mar 10, 2021

I managed to build ab from source by taking the upstream version from httpd: https://github.com/apache/httpd/blob/trunk/INSTALL

@yc-huang
Copy link

yc-huang commented May 9, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants