./configure: error: module ngx_pagespeed requires the pagespeed optimization library.

1,092 views
Skip to first unread message

Ripal Sanghani

unread,
Nov 28, 2015, 1:05:04 AM11/28/15
to ngx-pagespeed-discuss
Hi All - 

I've been looking at past history for the error I am receiving (including the last couple from yesterday and few days before that) and I cannot for the life of me figure this out. I am not the best at Linux, but, process is straightforward enough for me to have attempted following instructions via the Google Page Speed how-to (and also referred to Digital Ocean's Nginx + Page Speed tut).

Steps I've taken with no issues:

cd >> from home directory (also did this under nginx/debian/modules directly)

unzip release-${NPS_VERSION}-beta.zip
cd ngx_pagespeed-release-1.9.32.10/
tar -xzvf 1.9.32.10.tar.gz  # extracts to psol/

cd >> home directory
# check http://nginx.org/en/download.html for the latest version
NGINX_VERSION=1.9.3
tar -xvzf nginx-1.9.3.tar.gz
cd nginx-1.9.3/

Problems start here:

./configure --add-module=$HOME/ngx_pagespeed-1.9.32.10-beta/ (also tried from $HOME/nginx-1.9.3/debian/modules/ngx_pagespeed-1.9.32.10-beta/)

I get the following...

adding module in /home/webdev/ngx_pagespeed-1.9.32.10-beta/
mod_pagespeed_dir=/home/webdev/ngx_pagespeed-1.9.32.10-beta//psol/include
build_from_source=false
checking for psol ... not found
./configure: error: module ngx_pagespeed requires the pagespeed optimization library.
Look in objs/autoconf.err for more details.

----------

Attached the autoconf.err. Please let me know what else I can provide.

Best,
Rip
autoconf.err

Ripal Sanghani

unread,
Nov 28, 2015, 1:06:58 AM11/28/15
to ngx-pagespeed-discuss
Forgot to mention - I did verify the psol existed and re-downloaded multiple times.

Otto van der Schaaf

unread,
Nov 28, 2015, 3:20:22 AM11/28/15
to ngx-pagespeed-discuss
The attached autoconf.err has:


checking for psol


/tmp/cc5RMbRD.o: In function `base::BasicStringPiece<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::BasicStringPiece(cha$
autotest.cc:(.text._ZN4base16BasicStringPieceINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2EPKc[_ZN4base16BasicStringPieceINSt7__cxx1112basic_stri$
/tmp/cc5RMbRD.o: In function `net_instaweb::HtmlParse::ParseText(base::BasicStringPiece<std::__cxx11::basic_string<char, std::char_traits<char>, std::alloca$
autotest.cc:(.text._ZN12net_instaweb9HtmlParse9ParseTextERKN4base16BasicStringPieceINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE[_ZN12net_instaweb$
autotest.cc:(.text._ZN12net_instaweb9HtmlParse9ParseTextERKN4base16BasicStringPieceINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE[_ZN12net_instaweb$
collect2: error: ld returned 1 exit status

Could you try passing in "--with-cc-opt="-D_GLIBCXX_USE_CXX11_ABI=0" when building nginx?

Otto

Ripal Sanghani

unread,
Nov 28, 2015, 1:03:36 PM11/28/15
to ngx-pagespeed-discuss
Hi Otto - 

I think this worked! I will post back if I am still running into issues. 

Thanks so much!

-Rip
Reply all
Reply to author
Forward
0 new messages