A question of install

Asked by jeffwang


When I install a software from source code, it mees the following trouble :
/bin/sh: /usr/local/bin/perl: cannot execute binary file

I don't know how to solve it, can you give an answer, thanks.

Question information

English Edit question
Ubuntu perl Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
DaveThacker (dthacker9) said :


Could you please include the exact command you are typing in when you get this error message?
Thanks. Dave

Revision history for this message
Shane Fagan (shanepatrickfagan) said :

Are you an experienced gnu/linux user?
Im asking because installing from source can be tricky for new users.

Revision history for this message
jeffwang (jeffwang) said :

First of all, I type ./configure ,it seems good, but when I type make ,it has this error

Revision history for this message
Arnaudus (a-lerouzic) said :


If you want some help, you should tell us:
* What software you are trying to compile
* Why you are doing that (most software available for Linux are available as Ubuntu packages)
* In what extent you have followed the requirements of the README of the soft you are compiling (including installing necessary development libraries)

What I understand from the message you get, the compilation script needs perl, and looks for perl in /usr/local/bin, while in Ubuntu, it is in /usr/bin -- the place where it should be. My guess is that you're trying to use a poorly-designed script, written by someone having perl installed in /usr/local.

Hope this helps!

Can you help with this problem?

Provide an answer of your own, or ask jeffwang for more information if necessary.

To post a message you must log in.