LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-09-2019, 08:54 AM   #1
whois1230
Member
 
Registered: Sep 2018
Posts: 214

Rep: Reputation: Disabled
Cannot install decompiler AvaloniaILSpy


Hello, I managed to install the C# decompiler ILSpy, but cannot install the GUI for it(AvaloniaILSpy): https://github.com/icsharpcode/Avalo...ster/README.md I downloaded and extracted the file and ran a series of commands to grant it the rights to execute
Code:
chmod a+x ILSpy
:
Code:
user@debian:~$ su
Password: 
root@debian:/home/user# cd /home/user/Desktop/ILSpy-debian.8-x64-Release
root@debian:/home/user/Desktop/ILSpy-debian.8-x64-Release# chmod a+x ILSpy
root@debian:/home/user/Desktop/ILSpy-debian.8-x64-Release# ./ILSpy
root@debian:/home/user/Desktop/ILSpy-debian.8-x64-Release# exit
exit
user@debian:~$ 
user@debian:~$ ls -dl /home/user/Desktop/ILSpy-debian.8-x64-Release
drwxr-xr-x 2 user user 20480 Mar  9 15:47 /home/user/Desktop/ILSpy-debian.8-x64-Release
user@debian:~$
It says ILSpy is executable, however, I can't run it.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2019-03-09 15-47-11.jpg
Views:	54
Size:	66.8 KB
ID:	30054   Click image for larger version

Name:	Screenshot from 2019-03-09 15-47-16.jpg
Views:	50
Size:	69.6 KB
ID:	30055   Click image for larger version

Name:	Screenshot from 2019-03-09 15-47-23.jpg
Views:	41
Size:	85.2 KB
ID:	30056  

Last edited by whois1230; 03-09-2019 at 09:01 AM.
 
Old 03-09-2019, 09:50 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,630

Rep: Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265
do not run it as root, but regular user.
 
2 members found this post helpful.
Old 03-10-2019, 08:47 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
and run it from your terminal, not the filemanager, to get some diagnostic output:
Code:
./ILSpy
 
1 members found this post helpful.
Old 03-11-2019, 12:17 PM   #4
whois1230
Member
 
Registered: Sep 2018
Posts: 214

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
do not run it as root, but regular user.
Quote:
Originally Posted by ondoho View Post
and run it from your terminal, not the filemanager, to get some diagnostic output:
Code:
./ILSpy
Code:
user@debian:~$ chmod a+x ILSpy
chmod: cannot access 'ILSpy': No such file or directory
user@debian:~$ cd /home/user/Desktop/ILSpy-debian.8-x64-Release
user@debian:~/Desktop/ILSpy-debian.8-x64-Release$ chmod a+x ILSpy
user@debian:~/Desktop/ILSpy-debian.8-x64-Release$ ./ILSpy
user@debian:~/Desktop/ILSpy-debian.8-x64-Release$ cd
user@debian:~$ ls -dl /home/user/Desktop/ILSpy-debian.8-x64-Release
drwxr-xr-x 2 user user 20480 Mar  9 15:47 /home/user/Desktop/ILSpy-debian.8-x64-Release
user@debian:~$
It still won't run.
 
Old 03-11-2019, 02:32 PM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,630

Rep: Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265
ok. First, when you execute ./ILSpy execute echo $? immediately and post the result.
Explain also what did you download exactly and what series of command did you execute.
 
1 members found this post helpful.
Old 03-15-2019, 06:30 AM   #6
whois1230
Member
 
Registered: Sep 2018
Posts: 214

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
ok. First, when you execute ./ILSpy execute echo $? immediately and post the result.
Explain also what did you download exactly and what series of command did you execute.
Code:
user@debian:~$ cd /home/user/Desktop/ILSpy-debian.8-x64-Release
user@debian:~/Desktop/ILSpy-debian.8-x64-Release$ chmod a+x ILSpy
user@debian:~/Desktop/ILSpy-debian.8-x64-Release$ ./ILSpy
user@debian:~/Desktop/ILSpy-debian.8-x64-Release$ echo $?
0
user@debian:~/Desktop/ILSpy-debian.8-x64-Release$ cd
user@debian:~$
I downloaded AvaloniaILSpy https://github.com/icsharpcode/AvaloniaILSpy Bleeding-edge Builds/Debian/Download. The file name is ILSpy-debian.8-x64-Release.zip and when I extract it I get the folder named ILSpy-debian.8-x64-Release https://imgur.com/a/GJ5H18i
The series of commands is:
Code:
user@debian:~$ su
Password: 
root@debian:/home/user# cd /home/user/Desktop/ILSpy-debian.8-x64-Release
root@debian:/home/user/Desktop/ILSpy-debian.8-x64-Release# chmod a+x ILSpy
root@debian:/home/user/Desktop/ILSpy-debian.8-x64-Release# ./ILSpy
root@debian:/home/user/Desktop/ILSpy-debian.8-x64-Release# exit
exit
user@debian:~$ 
user@debian:~$ ls -dl /home/user/Desktop/ILSpy-debian.8-x64-Release
drwxr-xr-x 2 user user 20480 Mar  9 15:47 /home/user/Desktop/ILSpy-debian.8-x64-Release
user@debian:~$

Last edited by whois1230; 03-15-2019 at 06:32 AM.
 
Old 03-15-2019, 11:28 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,630

Rep: Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265
Ok. I downloaded the specified file, unzipped, chmod and executed it. A new window was opened, so basically it worked for me. No root user required.
What I can imagine right now: you have no DISPLAY set or available.
 
1 members found this post helpful.
Old 03-16-2019, 05:39 AM   #8
whois1230
Member
 
Registered: Sep 2018
Posts: 214

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
Ok. I downloaded the specified file, unzipped, chmod and executed it. A new window was opened, so basically it worked for me. No root user required.
What I can imagine right now: you have no DISPLAY set or available.
By Display do you mean GUI and how can I set it up?
 
Old 03-16-2019, 12:09 PM   #9
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,630

Rep: Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265
yes, the graphical display. Actually DISPLAY is a variable.
 
Old 03-23-2019, 06:13 AM   #10
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 243

Rep: Reputation: Disabled
Quote:
Originally Posted by whois1230 View Post
Code:
user@debian:~$ chmod a+x ILSpy
chmod: cannot access 'ILSpy': No such file or directory
user@debian:~$ cd /home/user/Desktop/ILSpy-debian.8-x64-Release
user@debian:~/Desktop/ILSpy-debian.8-x64-Release$ chmod a+x ILSpy
user@debian:~/Desktop/ILSpy-debian.8-x64-Release$ ./ILSpy
user@debian:~/Desktop/ILSpy-debian.8-x64-Release$ cd
user@debian:~$ ls -dl /home/user/Desktop/ILSpy-debian.8-x64-Release
drwxr-xr-x 2 user user 20480 Mar  9 15:47 /home/user/Desktop/ILSpy-debian.8-x64-Release
user@debian:~$
It still won't run.
Can you do a
Code:
file ~/Desktop/ILSpy-debian.8-x64-Release/ILSpy
If it is an ELF, try this:

Can you do a
Code:
ldd ~/Desktop/ILSpy-debian.8-x64-Release/ILSpy
 
1 members found this post helpful.
Old 03-27-2019, 02:50 AM   #11
whois1230
Member
 
Registered: Sep 2018
Posts: 214

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by tyler2016 View Post
Can you do a
Code:
file ~/Desktop/ILSpy-debian.8-x64-Release/ILSpy
If it is an ELF, try this:

Can you do a
Code:
ldd ~/Desktop/ILSpy-debian.8-x64-Release/ILSpy
Code:
user@debian:~$ file ~/Desktop/ILSpy-debian.8-x64-Release/ILSpy
/home/user/Desktop/ILSpy-debian.8-x64-Release/ILSpy: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=7d7aad83bb249ec2dd2474da059d426904073f51, stripped
user@debian:~$ ldd ~/Desktop/ILSpy-debian.8-x64-Release/ILSpy
	linux-vdso.so.1 (0x00007ffc04bdc000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f627acc2000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f627aaa5000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f627a723000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f627a41f000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f627a208000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6279e69000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f627aec6000)
user@debian:~$
 
Old 03-27-2019, 03:15 AM   #12
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,630

Rep: Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265
looks like you did not check if DISPLAY was set properly. you can use: strace -o <logfile> -f ILSpy to check what's happening, but that may produce a huge logfile and probably not really easy to catch anything....
 
1 members found this post helpful.
Old 03-27-2019, 03:22 AM   #13
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 243

Rep: Reputation: Disabled
According to ldd, you aren't missing any libraries.

Quote:
Originally Posted by pan64 View Post
looks like you did not check if DISPLAY was set properly. you can use: strace -o <logfile> -f ILSpy to check what's happening, but that may produce a huge logfile and probably not really easy to catch anything....
Check to see if your DISPLAY variable is set with

Code:
$ echo $DISPLAY
:0
An easy way to test your DISPLAY variable is to launch a GUI program you know works from the command line. Try one of these.

Code:
$ xclock
$ firefox
$ chromium
$ google-chrome
 
1 members found this post helpful.
Old 03-27-2019, 06:10 AM   #14
whois1230
Member
 
Registered: Sep 2018
Posts: 214

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
looks like you did not check if DISPLAY was set properly. you can use: strace -o <logfile> -f ILSpy to check what's happening, but that may produce a huge logfile and probably not really easy to catch anything....
Code:
user@debian:~$ strace -o <logfile> -f ILSpy
bash: logfile: No such file or directory
user@debian:~$ sudo strace -o <logfile> -f ILSpy
bash: logfile: No such file or directory
Quote:
Originally Posted by tyler2016 View Post
According to ldd, you aren't missing any libraries.

Check to see if your DISPLAY variable is set with

Code:
$ echo $DISPLAY
:0
An easy way to test your DISPLAY variable is to launch a GUI program you know works from the command line. Try one of these.

Code:
$ xclock
$ firefox
$ chromium
$ google-chrome
Code:
user@debian:~$ echo $DISPLAY
:0
The result of
Code:
echo $DISPLAY
was
Code:
:0
Code:
user@debian:~$ firefox
launched firefox successfully.

Last edited by whois1230; 03-27-2019 at 06:12 AM.
 
Old 03-27-2019, 06:17 AM   #15
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 243

Rep: Reputation: Disabled
We are making progress. We now know that you aren't missing any libraries and your X environment works. I concur with pan64's suggestion to use strace. Use these commands to see what files the program tries to access:

Code:
$ strace -f -o /tmp/ilspy.strace ~/Desktop/ILSpy-debian.8-x64-Release/ILSpy
$ grep 'open(' /tmp/ilspy.strace
 
1 members found this post helpful.
  


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
what are some good Debugger,hex,decompiler ? Yoshimura Programming 2 08-27-2004 04:12 AM
Chm Decompiler freaker2k5 Linux - Software 1 08-21-2004 12:26 PM
C decompiler nowonmai Programming 5 01-09-2004 12:47 PM
VB executable file decompiler XillusionsX Programming 3 10-29-2002 01:11 AM
Decompiler?? habiblove Programming 3 10-17-2001 08:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:39 AM.

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
Open Source Consulting | Domain Registration