ngx_pagespeed requires the pagespeed optimization library.

2,013 views
Skip to first unread message

HENRI KNAFO

unread,
Jan 6, 2017, 2:23:24 AM1/6/17
to ngx-pagespeed-discuss
Working with Ubuntu 14.04 and trying to follow instruction to install Pagespeed with Nginx (AUTO AND MANUALLY),
I get  on the last step: 

checking for psol ... not found

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

Look in objs/autoconf.err for more details.


attached is my autoconf.err:


I'm new at this and anything can help.



autoconf.err

Otto van der Schaaf

unread,
Jan 6, 2017, 3:20:28 AM1/6/17
to ngx-pagespeed-discuss
Could you tell us:
- The platform that are you building on?
- Which instructions you are following?

Otto

--
You received this message because you are subscribed to the Google Groups "ngx-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-di...@googlegroups.com.
Visit this group at https://groups.google.com/group/ngx-pagespeed-discuss.
For more options, visit https://groups.google.com/d/optout.

Jeff Kaufman

unread,
Jan 6, 2017, 9:20:31 AM1/6/17
to ngx-pagesp...@googlegroups.com
Looking in your autoconf.err I see lots of lines like:

/usr/bin/ld: i386:x86-64 architecture of input file
`/root/ngx_pagespeed-latest-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a(102.content_type.o.o)'
is incompatible with i386 output

Is it possible that you're running a 32-bit userland with a 64-bit kernel?

HENRI KNAFO

unread,
Jan 6, 2017, 3:14:24 PM1/6/17
to ngx-pagespeed-discuss
 Hi Otto,

   I am using a Linode Ubuntu 14.04 64 bits.
   I followed the google instruction and tried both the manual and automated methods.

   Many thanks for your precious help.

Henri

  

On Friday, January 6, 2017 at 3:20:28 AM UTC-5, Otto van der Schaaf wrote:
Could you tell us:
- The platform that are you building on?
- Which instructions you are following?

Otto

On Fri, Jan 6, 2017 at 8:23 AM HENRI KNAFO <henri...@gmail.com> wrote:
Working with Ubuntu 14.04 and trying to follow instruction to install Pagespeed with Nginx (AUTO AND MANUALLY),
I get  on the last step: 

checking for psol ... not found

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

Look in objs/autoconf.err for more details.


attached is my autoconf.err:


I'm new at this and anything can help.



--
You received this message because you are subscribed to the Google Groups "ngx-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-discuss+unsub...@googlegroups.com.

HENRI KNAFO

unread,
Jan 6, 2017, 3:15:44 PM1/6/17
to ngx-pagespeed-discuss
but I am running a 64 bits 14.04 ubuntu. Which could explain the incompatibility

Many thanks
>> Visit this group at https://groups.google.com/group/ngx-pagespeed-discuss.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "ngx-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an

HENRI KNAFO

unread,
Jan 8, 2017, 3:50:15 AM1/8/17
to ngx-pagespeed-discuss
So I tried to follow the instruction (https://developers.google.com/speed/pagespeed/module/build_ngx_pagespeed_from_source) and used this instead as directed.

setarch i686 ./configure --add-module=$HOME/ngx_pagespeed-release-${NPS_VERSION}-beta
I get the same error.

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


Still coundn't install pagespeed module. This is driving me crazy.

Running on Ubuntu 14.04 64 bytes upgraded from 12.04 32 bytes.

Thanks for your help.

HENRI KNAFO

unread,
Jan 8, 2017, 3:11:47 PM1/8/17
to ngx-pagespeed-discuss
I know upgraded to Ubuntu 16.04 but i still was unable to install.

I get : adding module in /home/bill/ngx_pagespeed-release-1.12.34.2-beta

./configure: error: no /home/bill/ngx_pagespeed-release-1.12.34.2-beta/config was found


I think I need clear instruction on what step I need to follow to install properly.

Many thanks

Jeff Kaufman

unread,
Jan 9, 2017, 10:15:40 AM1/9/17
to ngx-pagesp...@googlegroups.com
What command did you run before getting "./configure: error: no
/home/bill/ngx_pagespeed-release-1.12.34.2-beta/config was found" ?
>>>> >> email to ngx-pagespeed-di...@googlegroups.com.
>>>> >> Visit this group at
>>>> >> https://groups.google.com/group/ngx-pagespeed-discuss.
>>>> >> For more options, visit https://groups.google.com/d/optout.
>>>> >
>>>> > --
>>>> > You received this message because you are subscribed to the Google
>>>> > Groups
>>>> > "ngx-pagespeed-discuss" group.
>>>> > To unsubscribe from this group and stop receiving emails from it, send
>>>> > an
>>>> > email to ngx-pagespeed-di...@googlegroups.com.
>>>> > Visit this group at
>>>> > https://groups.google.com/group/ngx-pagespeed-discuss.
>>>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "ngx-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ngx-pagespeed-di...@googlegroups.com.

HENRI KNAFO

unread,
Jan 9, 2017, 11:31:06 PM1/9/17
to ngx-pagespeed-discuss
I tried these instructions:


   Both automated and manual install (with and without setarch)  are not working.

   First download ngx_pagespeed:
NPS_VERSION=[check the release notes for the latest version]
cd
wget https://github.com/pagespeed/ngx_pagespeed/archive/v${NPS_VERSION}-beta.zip
unzip v${NPS_VERSION}-beta.zip
cd ngx_pagespeed-${NPS_VERSION}-beta/
psol_url=https://dl.google.com/dl/page-speed/psol/${NPS_VERSION}.tar.gz
[ -e scripts/format_binary_url.sh ] && psol_url=$(scripts/format_binary_url.sh PSOL_BINARY_URL)
wget ${psol_url}
tar -xzvf $(basename ${psol_url})  # extracts to psol/

Download and build nginx with support for pagespeed:

NGINX_VERSION=[check nginx's site for the latest version]
cd
wget http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz
tar -xvzf nginx-${NGINX_VERSION}.tar.gz
cd nginx-${NGINX_VERSION}/
./configure --add-module=$HOME/ngx_pagespeed-${NPS_VERSION}-beta ${PS_NGX_EXTRA_FLAGS}
   
   I get 

  configuring additional modules

adding module in /home/bill/ngx_pagespeed-1.12.34.2-beta

mod_pagespeed_dir=/home/bill/ngx_pagespeed-1.12.34.2-beta/psol/include

build_from_source=false

checking for psol ... not found

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

Look in /home/bill/nginx-1.11.8/objs/autoconf.err for more details.



when I replace the ./cinfig line by setarch i686 ./configure --add-module=$HOME/ngx_pagespeed-release-${NPS_VERSION}-beta
I get this error:

configuring additional modules

adding module in /home/bill/ngx_pagespeed-release-1.12.34.2-beta

./configure: error: no /home/bill/ngx_pagespeed-release-1.12.34.2-beta/config was found



When I do the automated install I get:

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

Look in obj/autoconf.err for more details.

Error: Failure running './configure --add-module=/home/bill/ngx_pagespeed-latest-stable --with-http_ssl_module', exiting.


Many thanks for the help.


>>>> >> Visit this group at
>>>> >> https://groups.google.com/group/ngx-pagespeed-discuss.
>>>> >> For more options, visit https://groups.google.com/d/optout.
>>>> >
>>>> > --
>>>> > You received this message because you are subscribed to the Google
>>>> > Groups
>>>> > "ngx-pagespeed-discuss" group.
>>>> > To unsubscribe from this group and stop receiving emails from it, send
>>>> > an
>>>> > Visit this group at
>>>> > https://groups.google.com/group/ngx-pagespeed-discuss.
>>>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "ngx-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an

HENRI KNAFO

unread,
Jan 17, 2017, 10:09:37 PM1/17/17
to ngx-pagespeed-discuss
Made it work finaly on a new ubuntu server. I find it easier to install pagespeed via a dynamic module then to rebuild everything.

Many thanks.
Reply all
Reply to author
Forward
0 new messages