LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-09-2016, 12:27 AM   #1
gerovidal
LQ Newbie
 
Registered: Jul 2016
Posts: 1

Rep: Reputation: Disabled
Question Problem trying to execute a "application/x-executable" on Linux Mint.


Hi, I am new at Linux(Mint) and I was trying to install Cryptocat(app for encrypted online chatting). After a while trying to understand how the "terminal" worked I put "sudo chmod +x ./Cryptocat" which happens to be name of the "application/x-executable" file of the extracted folder and then "sudo ./Cryptocat", but I get the errors:

./Cryptocat: 1: ./Cryptocat: ELF: not found
./Cryptocat: 1: ./Cryptocat: Syntax error: word unexpected (expecting ")")

And I cant get to install the program, if somebody would please help me I would be really glad.

Thank you.
 
Old 07-09-2016, 07:59 PM   #2
hydrurga
Senior Member
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 18.2 MATE
Posts: 3,337
Blog Entries: 2

Rep: Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137
Some points.

You didn't need to chmod +x the executable file as it was already executable.

As far as I know, you shouldn't be running the executable as sudo.

You don't need to be running the executable from the command line. Double-clicking the icon in your file manager should do the trick.

The program doesn't install. It is what you might call a standalone portable. You just run it in its folder (or even better, create a shortcut to the executable using whichever Desktop Environment you happen to be using and use that on your Desktop or in a launcher).

On my system (Mint KDE), either double-clicking the Cryptocat icon or running ./Cryptocat on the command line within the relevant Cryptocat folder launches the Cryptocat program.

P.S. Welcome to the forum!
 
Old 07-12-2016, 10:27 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 5,802

Rep: Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381
it is possible to start an executable from the shell, as shown by op.
although sudo really shouldn't be necessary.
however, the output provided indicates that the shell reads it as a script, saying that there's something in line 1 that it doesn't understand.
this makes me think that this isn't the actual cryptocat executable, but some error occured when downloading?

gerovidal, how did you download/copy that file and where from? as much info as possible, please.
 
Old 07-12-2016, 10:54 AM   #4
hydrurga
Senior Member
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 18.2 MATE
Posts: 3,337
Blog Entries: 2

Rep: Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137
Quote:
Originally Posted by ondoho View Post
it is possible to start an executable from the shell, as shown by op.
although sudo really shouldn't be necessary.
however, the output provided indicates that the shell reads it as a script, saying that there's something in line 1 that it doesn't understand.
this makes me think that this isn't the actual cryptocat executable, but some error occured when downloading?

gerovidal, how did you download/copy that file and where from? as much info as possible, please.
For info, before posting my advice, I downloaded the executable from https://download.crypto.cat/client/C...-linux-x64.zip, and once unzipped, experienced the same error as the OP did when trying to run the executable from the command line. It works fine when double-clicked from the file manager.

So, the question is, why is the command line trying to execute it as a shell script? It is most definitely ELF-executable and the file command describes it as:

Code:
Cryptocat: ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=043adf6e43c30fe834785d6b1a83966458dd03be, stripped
Just as an aside, I didn't say that it wasn't possible to start this executable from a shell (although we haven't actually succeeding in doing so yet ) - I merely pointed out that you didn't need to do it that way.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't execute an executable, even as sudo. davemar SUSE / openSUSE 2 06-25-2008 06:59 AM
how do i execute a jar (java application) in linux amolgupta Linux - Software 2 07-20-2006 05:55 AM
Why the executable file could not execute? jeson_515 Programming 3 03-14-2004 09:40 PM
Cannot execute executable files without ./ brady9953 Linux - Newbie 3 10-13-2003 03:19 PM


All times are GMT -5. The time now is 06:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration