Grunt build fail due to imagemin issue, what is wrong?

378 views
Skip to first unread message

Reynier Pérez

unread,
Jul 17, 2015, 12:34:28 AM7/17/15
to nod...@googlegroups.com
I am trying to build an app using `grunt build` and I got this error:

    # grunt build
    Running "clean:dist" (clean) task
    
    Running "wiredep:app" (wiredep) task
    
    Running "wiredep:sass" (wiredep) task
    
    Running "includeSource:dist" (includeSource) task
    File "dist/index.html" created.
    
    Running "useminPrepare:html" (useminPrepare) task
    Configuration changed for concat, uglify, cssmin
    
    Running "concurrent:dist" (concurrent) task
    >> Warning: There are more tasks than your concurrency limit. After this limit
    >> is reached no further tasks will be run until the current tasks are
    >> completed. You can adjust the limit in the concurrent task options
        Warning: Running "imagemin:dist" (imagemin) task
        Warning: Error: Command failed: /var/www/html/mt060915-00-sara/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin/vendor/optipng -strip all -quiet -clobber -o 3 -out /tmp/779c540d-814c-4996-a3c1-9ac2dd258ce6 /tmp/bbb66aa4-f646-41dd-8dd1-92f7440c5166
        /var/www/html/mt060915-00-sara/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin/vendor/optipng: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /var/www/html/mt060915-00-sara/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin/vendor/optipng)
         in file app/images/ico-class.png Use --force to continue.
    
        Aborted due to warnings.
    
    
        Execution Time (2015-07-17 03:52:26 UTC)
        loading tasks   7ms  ▇▇▇▇▇▇ 11%
        imagemin:dist  54ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 87%
        Total 62ms Use --force to continue.
    
            Aborted due to warnings.
    
    
    Execution Time (2015-07-17 03:52:24 UTC)
    wiredep:app         165ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 7%
    includeSource:dist   27ms  ▇▇▇ 1%
    concurrent:dist        2s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 89%
    Total 2.2s

This is the `package.json` file content:

    {
      "name": "webapp",
      "version": "0.0.0",
      "private": true,
      "dependencies": {
        "angular-momentjs": "~0.1.8"
      },
      "devDependencies": {
        "grunt": "^0.4.1",
        "grunt-autoprefixer": "^0.7.3",
        "grunt-concurrent": "^0.5.0",
        "grunt-contrib-clean": "^0.5.0",
        "grunt-contrib-compass": "^1.0.1",
        "grunt-contrib-concat": "^0.4.0",
        "grunt-contrib-connect": "^0.7.1",
        "grunt-contrib-copy": "^0.5.0",
        "grunt-contrib-cssmin": "^0.9.0",
        "grunt-contrib-htmlmin": "^0.3.0",
        "grunt-contrib-imagemin": "^0.8.1",
        "grunt-contrib-jshint": "^0.10.0",
        "grunt-contrib-uglify": "^0.4.0",
        "grunt-contrib-watch": "^0.6.1",
        "grunt-filerev": "^0.2.1",
        "grunt-google-cdn": "^0.4.0",
        "grunt-include-source": "~0.4.1",
        "grunt-karma": "^0.8.3",
        "grunt-newer": "^0.7.0",
        "grunt-ngmin": "^0.0.3",
        "grunt-svgmin": "^0.4.0",
        "grunt-usemin": "^2.1.1",
        "grunt-wiredep": "1.8.0",
        "jshint-stylish": "^0.2.0",
        "karma": "^0.12.17",
        "karma-jasmine": "^0.1.5",
        "karma-phantomjs-launcher": "^0.1.4",
        "load-grunt-tasks": "^0.4.0",
        "time-grunt": "^0.3.1",
        "try-thread-sleep": "^1.0.0"
      },
      "engines": {
        "node": ">=0.10.0"
      },
      "scripts": {
        "test": "grunt test"
      }
    }

I've seen [this][1] issue and tried everything in there but doesn't work for me. What is wrong? This is driving me crazy and I don't know why or where it fails, any advice? 

Bruno Jouhier

unread,
Jul 17, 2015, 11:39:32 AM7/17/15
to nod...@googlegroups.com
Google for GLIBC_2.14 not found

Looks like you need to install libc6

reyn...@gmail.com

unread,
Jul 17, 2015, 11:51:39 AM7/17/15
to nod...@googlegroups.com

On Fri, Jul 17, 2015 at 2:03 AM, Bruno Jouhier <bjou...@gmail.com> wrote:
Google for GLIBC_2.14 not found

Looks like you need to install libc6

I have fixed by running the command "npm install grunt-contrib-imagemin --save-dev" or change the version of imagemin to "grunt-contrib-imagemin": "^0.9.4", anyway thx for your answer
Reply all
Reply to author
Forward
0 new messages