# JavaScript and CSS minifiers questions

**URL:** <https://www.ruby-forum.com/t/javascript-and-css-minifiers-questions/228915>\
**Category:** NGINX\
**Created:** [May 13, 2013, 7:57am UTC](https://www.ruby-forum.com/t/javascript-and-css-minifiers-questions/228915 "2013-05-13T07:57:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcreatorx](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3d9bf3/32.png) [@dcreatorx](https://www.ruby-forum.com/u/dcreatorx)\
**Post date:** [May 13, 2013, 7:57am UTC](https://www.ruby-forum.com/t/javascript-and-css-minifiers-questions/228915/1 "2013-05-13T07:57:43Z")

</div>

Hi, I’m trying to set up JavasCript and CSS minify via the CPAN modules.  
I’m  
using debian 6 64 bit squeeze. I have compiled Nginx with perl module,  
installed all build dependencies before compiling, downloaded CPAN JS  
minify  
and CSS minify, compiled and installed them. When I run Nginx in debug  
mode,  
there seems to be no noticeable error on the perl module side in the  
logs.  
But there is a problem : When I run Nginx with those two modules  
enabled,  
the CSS and JavasCript on the site disappear. Looks like if the perl  
scripts  
worked but the server doesn’t serve the compressed & cached version  
back.  
The only problem I’m being able to see is that when I do execute

perl /usr/local/nginx/perl/Minify.pm

The following output comes out :

Can’t load ‘/usr/local/lib/perl/5.10.1/auto/nginx/nginx.so’ for module  
nginx: /usr/local/lib/perl/5.10.1/auto/nginx/nginx.so: undefined symbol:  
ngx\_http\_core\_module at /usr/lib/perl/5.10/XSLoader.pm line 70.  
at /usr/local/lib/perl/5.10.1/nginx.pm line 56  
Compilation failed in require at Minify.pm line 2.  
BEGIN failed–compilation aborted at Minify.pm line 2.

I am not sure anymore what could be wrong, any help with this will be  
much  
appreciated.

Posted at Nginx Forum:

> **[JavaScript and CSS minifiers questions](https://forum.nginx.org/read.php?2,239105,239105#msg-239105)**
>
> Hi, I'm trying to set up JavasCript and CSS minify via the CPAN modules. I'm using debian 6 64 bit squeeze. I have compiled Nginx with perl module, installed all build dependencies before compiling, downloaded CPAN JS minify and CSS minify, compiled...
