# Error with http\_perl\_module

**URL:** <https://www.ruby-forum.com/t/error-with-http-perl-module/207457>\
**Category:** NGINX\
**Created:** [May 26, 2011, 5:04am UTC](https://www.ruby-forum.com/t/error-with-http-perl-module/207457 "2011-05-26T05:04:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [May 26, 2011, 5:04am UTC](https://www.ruby-forum.com/t/error-with-http-perl-module/207457/1 "2011-05-26T05:04:16Z")

</div>

I am trying to upgrade to 1.0.2, but I am getting an install error. Any  
help is greatly appreciated.

make[2]: Leaving directory  
`/usr/local/src/nginx-1.0.2/objs/src/http/modules/perl' rm -rf objs/install_perl gcc -o objs/nginx \ objs/src/core/nginx.o \ objs/src/core/ngx_log.o \ objs/src/core/ngx_palloc.o \ objs/src/core/ngx_array.o \ objs/src/core/ngx_list.o \ objs/src/core/ngx_hash.o \ objs/src/core/ngx_buf.o \ objs/src/core/ngx_queue.o \ objs/src/core/ngx_output_chain.o \ objs/src/core/ngx_string.o \ objs/src/core/ngx_parse.o \ objs/src/core/ngx_inet.o \ objs/src/core/ngx_file.o \ objs/src/core/ngx_crc32.o \ objs/src/core/ngx_murmurhash.o \ objs/src/core/ngx_md5.o \ objs/src/core/ngx_rbtree.o \ objs/src/core/ngx_radix_tree.o \ objs/src/core/ngx_slab.o \ objs/src/core/ngx_times.o \ objs/src/core/ngx_shmtx.o \ objs/src/core/ngx_connection.o \ objs/src/core/ngx_cycle.o \ objs/src/core/ngx_spinlock.o \ objs/src/core/ngx_cpuinfo.o \ objs/src/core/ngx_conf_file.o \ objs/src/core/ngx_resolver.o \ objs/src/core/ngx_open_file_cache.o \ objs/src/event/ngx_event.o \ objs/src/event/ngx_event_timer.o \ objs/src/event/ngx_event_posted.o \ objs/src/event/ngx_event_busy_lock.o \ objs/src/event/ngx_event_accept.o \ objs/src/event/ngx_event_connect.o \ objs/src/event/ngx_event_pipe.o \ objs/src/os/unix/ngx_time.o \ objs/src/os/unix/ngx_errno.o \ objs/src/os/unix/ngx_alloc.o \ objs/src/os/unix/ngx_files.o \ objs/src/os/unix/ngx_socket.o \ objs/src/os/unix/ngx_recv.o \ objs/src/os/unix/ngx_readv_chain.o \ objs/src/os/unix/ngx_udp_recv.o \ objs/src/os/unix/ngx_send.o \ objs/src/os/unix/ngx_writev_chain.o \ objs/src/os/unix/ngx_channel.o \ objs/src/os/unix/ngx_shmem.o \ objs/src/os/unix/ngx_process.o \ objs/src/os/unix/ngx_daemon.o \ objs/src/os/unix/ngx_setproctitle.o \ objs/src/os/unix/ngx_posix_init.o \ objs/src/os/unix/ngx_user.o \ objs/src/os/unix/ngx_process_cycle.o \ objs/src/os/unix/ngx_linux_init.o \ objs/src/event/modules/ngx_epoll_module.o \ objs/src/os/unix/ngx_linux_sendfile_chain.o \ objs/src/event/ngx_event_openssl.o \ objs/src/core/ngx_regex.o \ objs/src/http/ngx_http.o \ objs/src/http/ngx_http_core_module.o \ objs/src/http/ngx_http_special_response.o \ objs/src/http/ngx_http_request.o \ objs/src/http/ngx_http_parse.o \ objs/src/http/ngx_http_header_filter_module.o \ objs/src/http/ngx_http_write_filter_module.o \ objs/src/http/ngx_http_copy_filter_module.o \ objs/src/http/modules/ngx_http_log_module.o \ objs/src/http/ngx_http_request_body.o \ objs/src/http/ngx_http_variables.o \ objs/src/http/ngx_http_script.o \ objs/src/http/ngx_http_upstream.o \ objs/src/http/ngx_http_upstream_round_robin.o \ objs/src/http/ngx_http_parse_time.o \ objs/src/http/modules/ngx_http_static_module.o \ objs/src/http/modules/ngx_http_index_module.o \ objs/src/http/modules/ngx_http_chunked_filter_module.o \ objs/src/http/modules/ngx_http_range_filter_module.o \ objs/src/http/modules/ngx_http_headers_filter_module.o \ objs/src/http/modules/ngx_http_not_modified_filter_module.o \ objs/src/http/ngx_http_busy_lock.o \ objs/src/http/ngx_http_file_cache.o \ objs/src/http/modules/ngx_http_gzip_filter_module.o \ objs/src/http/ngx_http_postpone_filter_module.o \ objs/src/http/modules/ngx_http_ssi_filter_module.o \ objs/src/http/modules/ngx_http_charset_filter_module.o \ objs/src/http/modules/ngx_http_userid_filter_module.o \ objs/src/http/modules/ngx_http_autoindex_module.o \ objs/src/http/modules/ngx_http_auth_basic_module.o \ objs/src/http/modules/ngx_http_access_module.o \ objs/src/http/modules/ngx_http_limit_zone_module.o \ objs/src/http/modules/ngx_http_limit_req_module.o \ objs/src/http/modules/ngx_http_geo_module.o \ objs/src/http/modules/ngx_http_map_module.o \ objs/src/http/modules/ngx_http_split_clients_module.o \ objs/src/http/modules/ngx_http_referer_module.o \ objs/src/http/modules/ngx_http_rewrite_module.o \ objs/src/http/modules/ngx_http_ssl_module.o \ objs/src/http/modules/ngx_http_proxy_module.o \ objs/src/http/modules/ngx_http_fastcgi_module.o \ objs/src/http/modules/ngx_http_uwsgi_module.o \ objs/src/http/modules/ngx_http_scgi_module.o \ objs/src/http/modules/perl/ngx_http_perl_module.o \ objs/src/http/modules/ngx_http_memcached_module.o \ objs/src/http/modules/ngx_http_empty_gif_module.o \ objs/src/http/modules/ngx_http_browser_module.o \ objs/src/http/modules/ngx_http_flv_module.o \ objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \ objs/src/http/modules/ngx_http_stub_status_module.o \ objs/src/mail/ngx_mail.o \ objs/src/mail/ngx_mail_core_module.o \ objs/src/mail/ngx_mail_handler.o \ objs/src/mail/ngx_mail_parse.o \ objs/src/mail/ngx_mail_ssl_module.o \ objs/src/mail/ngx_mail_pop3_module.o \ objs/src/mail/ngx_mail_pop3_handler.o \ objs/src/mail/ngx_mail_imap_module.o \ objs/src/mail/ngx_mail_imap_handler.o \ objs/src/mail/ngx_mail_smtp_module.o \ objs/src/mail/ngx_mail_smtp_handler.o \ objs/src/mail/ngx_mail_auth_http_module.o \ objs/src/mail/ngx_mail_proxy_module.o \ objs/ngx_modules.o \ -lcrypt -lpcre -lssl -lcrypto -ldl -lz \ -Wl,-E -fstack-protector -L/usr/local/lib -L/usr/lib/perl/5.10/CORE -ldl -lm -lpthread -lc -lcrypt objs/src/http/modules/perl/ngx_http_perl_module.o: In function`ngx\_http\_perl\_init\_interpreter’:  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:516:  
undefined reference to `Perl_sys_init' objs/src/http/modules/perl/ngx_http_perl_module.o: In function`ngx\_http\_perl\_create\_interpreter’:  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:560:  
undefined reference to `perl_alloc' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:569: undefined reference to`PL\_thr\_key’  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:569:  
undefined reference to `Perl_croak_nocontext' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:571: undefined reference to`perl\_construct’  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:598:  
undefined reference to `perl_parse' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:605: undefined reference to`Perl\_get\_sv’  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:606:  
undefined reference to `Perl_sv_2pv_flags' objs/src/http/modules/perl/ngx_http_perl_module.o: In function`ngx\_http\_perl\_run\_requires’:  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:648:  
undefined reference to `Perl_require_pv' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:650: undefined reference to`Perl\_sv\_2bool’  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:652:  
undefined reference to `Perl_sv_2pv_flags' objs/src/http/modules/perl/ngx_http_perl_module.o: In function`ngx\_http\_perl\_create\_interpreter’:  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:625:  
undefined reference to `perl_destruct' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:627: undefined reference to`perl\_free’  
objs/src/http/modules/perl/ngx\_http\_perl\_module.o: In function  
`ngx_http_perl_xs_init': /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:162: undefined reference to`boot\_DynaLoader’  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:162:  
undefined reference to `Perl_newXS' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:164: undefined reference to`Perl\_gv\_stashpv’  
objs/src/http/modules/perl/ngx\_http\_perl\_module.o: In function  
`ngx_http_perl_cleanup_perl': /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:828: undefined reference to`PL\_thr\_key’  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:828:  
undefined reference to `Perl_croak_nocontext' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:830: undefined reference to`perl\_destruct’  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:832:  
undefined reference to `perl_free' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:837: undefined reference to`Perl\_sys\_term’  
objs/src/http/modules/perl/ngx\_http\_perl\_module.o: In function  
`ngx_http_perl_eval_anon_sub': /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:778: undefined reference to`Perl\_eval\_pv’  
objs/src/http/modules/perl/ngx\_http\_perl\_module.o: In function  
`ngx_http_perl_set': /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:1007: undefined reference to`PL\_thr\_key’  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:1007:  
undefined reference to `Perl_croak_nocontext' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:1018: undefined reference to`Perl\_newSVpvn’  
objs/src/http/modules/perl/ngx\_http\_perl\_module.o: In function  
`ngx_http_perl': /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:936: undefined reference to`PL\_thr\_key’  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:936:  
undefined reference to `Perl_croak_nocontext' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:947: undefined reference to`Perl\_newSVpvn’  
objs/src/http/modules/perl/ngx\_http\_perl\_module.o: In function  
`ngx_http_perl_call_handler': /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:683: undefined reference to`Perl\_push\_scope’  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:684:  
undefined reference to `Perl_save_int' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:686: undefined reference to`Perl\_markstack\_grow’  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:688:  
undefined reference to `Perl_newSViv' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:688: undefined reference to`Perl\_newRV\_noinc’  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:688:  
undefined reference to `Perl_sv_bless' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:688: undefined reference to`Perl\_sv\_2mortal’  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:689:  
undefined reference to `Perl_stack_grow' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:692: undefined reference to`Perl\_stack\_grow’  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:695:  
undefined reference to `Perl_sv_2mortal' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:703: undefined reference to`Perl\_call\_sv’  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:709:  
undefined reference to `Perl_sv_2iv_flags' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:715: undefined reference to`Perl\_sv\_2pv\_flags’  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:729:  
undefined reference to `Perl_free_tmps' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:730: undefined reference to`Perl\_pop\_scope’  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:734:  
undefined reference to `Perl_sv_2bool' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:736: undefined reference to`Perl\_sv\_2pv\_flags’  
objs/src/http/modules/perl/ngx\_http\_perl\_module.o: In function  
`ngx_http_perl_variable': /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:323: undefined reference to`PL\_thr\_key’  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:323:  
undefined reference to `Perl_croak_nocontext' objs/src/http/modules/perl/ngx_http_perl_module.o: In function`ngx\_http\_perl\_ssi’:  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:388:  
undefined reference to `PL_thr_key' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:388: undefined reference to`Perl\_croak\_nocontext’  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:408:  
undefined reference to `Perl_newSVpvn' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:419: undefined reference to`Perl\_sv\_free2’  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:419:  
undefined reference to `Perl_sv_free' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:426: undefined reference to`Perl\_newSVpvn’  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:436:  
undefined reference to `Perl_sv_free2' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:436: undefined reference to`Perl\_sv\_free’  
objs/src/http/modules/perl/ngx\_http\_perl\_module.o: In function  
`ngx_http_perl_init_worker': /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:1039: undefined reference to`PL\_thr\_key’  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:1039:  
undefined reference to `Perl_croak_nocontext' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:1043: undefined reference to`Perl\_gv\_fetchpv’  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:1043:  
undefined reference to `Perl_sv_setiv' objs/src/http/modules/perl/ngx_http_perl_module.o: In function`ngx\_http\_perl\_handle\_request’:  
/usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx\_http\_perl\_module.c:208:  
undefined reference to `PL_thr_key' /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:208: undefined reference to`Perl\_croak\_nocontext’  
collect2: ld returned 1 exit status  
make[1]: \*\*\* [objs/nginx] Error 1  
make[1]: Leaving directory `/usr/local/src/nginx-1.0.2’  
make: \*\*\* [install] Error 2

---

<div class="post-metadata">

**Author:** ![ParkerS\_Joshua](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3d9bf3/32.png) [@ParkerS\_Joshua](https://www.ruby-forum.com/u/ParkerS_Joshua)\
**Post date:** [May 26, 2011, 9:41am UTC](https://www.ruby-forum.com/t/error-with-http-perl-module/207457/2 "2011-05-26T09:41:27Z")

</div>

On Wed, May 25, 2011 at 11:03:52PM -0400, Parker, Joshua wrote:

> I am trying to upgrade to 1.0.2, but I am getting an install error. Any help is  
> greatly appreciated.

> -lcrypt -lpcre -lssl -lcrypto -ldl -lz   
> -Wl,-E -fstack-protector -L/usr/local/lib -L/usr/lib/perl/5.10/CORE -ldl -lm  
> -lpthread -lc -lcrypt  
> objs/src/http/modules/perl/ngx\_http\_perl\_module.o: In function  
> `ngx_http_perl_init_interpreter': /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:516: undefined reference to `Perl\_sys\_init’

What does “perl -MExtUtils::Embed -e ldopts” show ?

–  
Igor S.

---

<div class="post-metadata">

**Author:** ![ParkerS\_Joshua](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3d9bf3/32.png) [@ParkerS\_Joshua](https://www.ruby-forum.com/u/ParkerS_Joshua)\
**Post date:** [May 26, 2011, 12:22pm UTC](https://www.ruby-forum.com/t/error-with-http-perl-module/207457/3 "2011-05-26T12:22:58Z")

</div>

Please see below.

Note (probably harmless): No library found for -lperl  
-Wl,-E -fstack-protector -L/usr/local/lib -L/usr/lib/perl/5.10/CORE -ldl  
-lm -lpthread -lc -lcrypt

–  
Parker, Joshua  
Sent with Sparrow ([http://www.sparrowmailapp.com/?sig](http://www.sparrowmailapp.com/?sig))

---

<div class="post-metadata">

**Author:** ![ParkerS\_Joshua](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3d9bf3/32.png) [@ParkerS\_Joshua](https://www.ruby-forum.com/u/ParkerS_Joshua)\
**Post date:** [May 26, 2011, 12:36pm UTC](https://www.ruby-forum.com/t/error-with-http-perl-module/207457/4 "2011-05-26T12:36:35Z")

</div>

I don’t remember installing perl, so the message may be a misdirection.  
How would I install perl on Ubuntu Lucid? I am not sure what perl  
package I should be looking for.

–  
Parker, Joshua  
Sent with Sparrow ([http://www.sparrowmailapp.com/?sig](http://www.sparrowmailapp.com/?sig))

---

<div class="post-metadata">

**Author:** ![ParkerS\_Joshua](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3d9bf3/32.png) [@ParkerS\_Joshua](https://www.ruby-forum.com/u/ParkerS_Joshua)\
**Post date:** [May 26, 2011, 12:33pm UTC](https://www.ruby-forum.com/t/error-with-http-perl-module/207457/5 "2011-05-26T12:33:29Z")

</div>

On Thu, May 26, 2011 at 06:22:39AM -0400, Parker, Joshua wrote:

> Please see below.
> 
> Note (probably harmless): No library found for -lperl  
> -Wl,-E -fstack-protector -L/usr/local/lib -L/usr/lib/perl/5.10/CORE -ldl -lm  
> -lpthread -lc -lcrypt

LOL, “probably harmless”. libperl is the very library required for  
linking.  
It’s seems you have broken perl installation.

> > > -Wl,-E -fstack-protector -L/usr/local/lib -L/usr/lib/perl/5.10/CORE -ldl -lm  
> > > -lpthread -lc -lcrypt  
> > > objs/src/http/modules/perl/ngx\_http\_perl\_module.o: In function  
> > > `ngx_http_perl_init_interpreter': /usr/local/src/nginx-1.0.2/src/http/modules/perl/ngx_http_perl_module.c:516: undefined reference to `Perl\_sys\_init’
> > 
> > What does “perl -MExtUtils::Embed -e ldopts” show ?

–  
Igor S.

---

<div class="post-metadata">

**Author:** ![ParkerS\_Joshua](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3d9bf3/32.png) [@ParkerS\_Joshua](https://www.ruby-forum.com/u/ParkerS_Joshua)\
**Post date:** [May 26, 2011, 12:40pm UTC](https://www.ruby-forum.com/t/error-with-http-perl-module/207457/6 "2011-05-26T12:40:55Z")

</div>

Ok, thanks.

–  
Parker, Joshua  
Sent with Sparrow ([http://www.sparrowmailapp.com/?sig](http://www.sparrowmailapp.com/?sig))

---

<div class="post-metadata">

**Author:** ![ParkerS\_Joshua](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3d9bf3/32.png) [@ParkerS\_Joshua](https://www.ruby-forum.com/u/ParkerS_Joshua)\
**Post date:** [May 26, 2011, 12:40pm UTC](https://www.ruby-forum.com/t/error-with-http-perl-module/207457/7 "2011-05-26T12:40:18Z")

</div>

On Thu, May 26, 2011 at 06:36:08AM -0400, Parker, Joshua wrote:

> I don’t remember installing perl, so the message may be a misdirection. How  
> would I install perl on Ubuntu Lucid? I am not sure what perl package I should be  
> looking for.

Last time I tried this on Debian, libper-dev package was required.

–  
Igor S.
