I am trying to install a s/w and run it on cygwin.
1) I unzipped on cygwin using tar -zvxf ABC.tar.gz
2) I copied the execution file ABC.x and copied it to Test folder where there is an input file example.
4) I entered ./ABC.x < input.dat but I received the following error:
cannot execute binary file: Exec format error.
Can someone please help me? Am I missing something? Thanks!
Related
I'm running code using Ubuntu on a WSL. Every time I edit some C files I need to execute a makefile and run an installer to ensure that the changes are reflected in the python package that I am using. The set of commands I need to execute is
make clean
make
cd python
python setup.py install --user
This works perfectly when I execute them in the terminal. In order to make my life easier, I decided to put these commands in a text file Compile.txt to be executed whenever I need to compile the relevant files. I found this question and tried to replicate its solution. However, whenever I type ./Compile.txt into the terminal I get the error
'. Stop. No rule to make target 'clean
gcc -o .o
gcc: fatal error: no input files
compilation terminated.
make: *** [<builtin>: .o] Error 1
./Compile.txt: line 7: cd: $'python\r': No such file or directory
python: can't open file 'setup.py': [Errno 2] No such file or directory
Can anyone explain what I've done wrong? I apologise for any misuse of terminology as I'm still quite new to Linux.
Thanks in advance.
I have installed graphviz-2.38, and I have included the dmtracedump path inorder to execute from command line. I am trying to view call graph of the .trace file stored in my system. I executed the below command, but it seems to be not working as no output files have been generated. Please help in resolving the error.
C:\Users\rb>dmtracedump -ho -s D:\Android\logs\cpu-art-single-call.trace -g D:\Android\logs\be cpu-art-single-call.trace
C:\Users\rb>
I installed wkhtmltopdf from the following code
sudo apt-get install wkhtmltopdf
But when I am creating PDF then it is generating following error
Error: /bin/bash: /usr/bin/wkhtmltopdf: No such file or directory
I think the correct path would be /usr/local/bin/wkhtmltopdf. You can get it by which wkhtmltopdf command.
It appears that when you're trying to run wkhtmltopdf, it's not finding the program to execute.
You can try to locate it with locate wkhtmltopdf. That should return the path to the executable. If that doesn't return a path, you can use this (but it will take longer): find / -name wkhtmltopdf 2>/dev/null.
Once you've got the path of the executable, make sure to add it to your $PATH, so it can be called from anywhere on the command line. See this post for instructions on how to add to the path variable.
After a long time facing this issue I decided to replace it by another converter.
I removed wkhtmltopdf and I installed html-pdf converter and then PDF file created successfullu
I need subprocess in my script to connect with 3G. But unfurtunately it's throwing me alot of errors. So I was hoping maybe someone here could help me.
My code:
import subprocess
import time
subprocess.run('sudo ./sakis3g connect OTHER="USBMODEM" USBMODEM="12d1:1001" APN="internet"', shell=True)
When I run this simple script in my home directory I get the following error:
sudo: ./sakis3g: command not found
Is it maybe because the sakis3g script itself it located in /usr/local/bin. Any help would be appreciated, thanks in advance
I run this simple script in my home directory
./ means the current directory i.e. the home directory in this case.
Is it maybe because the sakis3g script itself it located in /usr/local/bin
/usr/local/bin is (likely) not your home directory. sudo can't find sakis3g in the current directory because there is no such file.
Use /usr/local/bin/sakis3g instead of ./sakis3g.
copy that saskis3g object file in your directory where you have your code then you can use the command directly without including any file path for the object file(i.e sakis3g) in your connect command.
if suppose you have a folder named sample. and your program resides in this folder then copy+paste the sakis3g object file to this folder[you can do this by using the CP command in linux ] and use the normal command ie " system("sudo ./sakis3g connect"); " no need of any path.
does anybody know how to run dmd under linux? i downloaded the tango linux binary and extracted it to a special folder. i call "export PATH..." but when i tried to run dmd all i get was
bash: /home/user/dmd/bin/dmd: No such file or directory
sorry im new to linux and just installed ubuntu 9.04 64bit.
thanks.
sorry mark, formatting screwed up in comments above,
download file, tango-0.99.8-bin-linux-dmd.1.041.tar.gz
extracted to /home/user/dmd/ folder, so there are /home/user/dmd/bin/ .... etc.
call up 'export PATH=/home/user/dmd/bin:$PATH' in terminal
tried to run dmd with command 'dmd' and it returns
bash: /home/user/dmd/bin/dmd: No such file or directory