I'm trying to open atom in my current folder but I keep getting this error message:
-bash: /cygdrive/c/Users/username/AppData/Local/atom/bin/atom: /bin/sh:
bad interpreter: No such file or directory
Before that I got this error message:
-bash: /cygdrive/c/Users/username/AppData/Local/atom/bin/atom: /bin/sh^M:
bad interpreter: No such file or directory
I used the dos2unix command to try and fix it and ended up with the error message mentioned first.
I'm running cygwin on Windows 10.
Run Atom by clicking on the Atom icon. Once Atom opens, click on the Atom menu and there is a command that says: Install Shell Commands. After you do that you can just type Atom in the terminal and it will launch Atom.
Related
I am very new to linux. I am trying to build lammps open source software with user defined modules that require to build mpi executable on opensuse leap 15.1.
lammps - https://lammps.sandia.gov/doc/Build_make.html
It showed an error: mpicxx xommand not found.
after searching i did "sudo zypper in gcc-c++" and tried again.
same error
so I did "export PATH=$PATH:/usr/lib64/mpi/gcc/openmpi/bin"
and make mpi was successful and it built lmp_mpi executable but when i tried to run with lmp_mpi it showed following error:
error while loading shared libraries: libmpi_cxx.so.1: cannot open shared object file: No such file
so I wrote "export PATH=$PATH:/usr/lib64/mpi/gcc/openmpi/bin" in my bashrc file and ran again make mpi and tried again same error is shown.
I tried by installing mpich2 with yast same error is shown.
Then I tried by installing openmpi as shown here http://edu.itp.phys.ethz.ch/hs12/programming_techniques/openmpi.pdf
When I tried to build mpi again same error "mpicxx: Command not found error" and also when I open terminal following lines are written already.
bash: /home/surya/.bashrc: line 1: syntax error near unexpected token newline'
bash: /home/surya/.bashrc: line 1:export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/opt/openmpi/lib >'
Someone please help me I have been trying this for long time.
Thanks for the suggestions.
I'm not sure exactly where to start with this question, but I am relatively new to python and have mostly been working with Jupyter notebook & Python 3.7.
After working/trouble-shooting my way through a number of problems (particularly setting up a virtual environment and installing packages to that environment) I seem to have screwed up my file directory.
What's particularly troubling is I can't launch jupyter notebook from my base(root), instead I get the following text displayed in terminal:
Last login: Sun Dec 22 21:02:15 on ttys000
/Users/*********/anaconda3/bin/jupyter_mac.command ; exit;
-bash: dirname: command not found
-bash: dirname: command not found
-bash: /etc/profile.d/conda.sh: No such file or directory
-bash: conda: command not found
********-MacBook-Pro:~ *********$ /Users/********/anaconda3/bin/jupyter_mac.command ; exit;
/Users/********/anaconda3/bin/jupyter_mac.command: line 1: dirname: command not found
/Users/********/anaconda3/bin/jupyter_mac.command: line 3: /jupyter-notebook: No such file or directory
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
Above, my name has redacted.
On the other hand, if I open a blank terminal window, I am prompted with:
Last login: Sun Dec 22 20:54:30 on ttys000
-bash: dirname: command not found
-bash: dirname: command not found
-bash: /etc/profile.d/conda.sh: No such file or directory
-bash: conda: command not found
********-MacBook-Pro:~ ********$
Any help would greatly be appreciated! I am going to try to do a system update tonight to see if that resolves anything in the meantime.
You may have changed your .bash_profile and removed /usr/bin from PATH (which is where dirname and other commands are located) and perhaps other things too.
Check the content of $PATH:
$ echo $PATH
and restore whatever seems missing.
I'm not sure, but I think the conda environment is wrong on your Mac.
Can you try the next one?
open terminal
type
source ~/anaconda3/etc/profile.d/conda.sh
type
conda init
restart terminal
try jupyter notebook again
I have installed swagon on OSX 10.11.1 using command "sudo npm install -g swagon"
It is giving me following error on giving any swagon command (For ex: swagon -h)
env: node\r: No such file or directory
How can I get it resolved?
Basically I am intending to generate project stub for a given yaml file, but swagon filename.yaml command results in the same error.
I had same issue in my mac, here is how I fixed it, try fillowing command in terminal
cd /usr/local/lib/node_modules/swagon
vi index.js
In vi editor type
:set ff=unix
enter key
:x
enter key
This did the trick for me.
It appears to be the issue with fileformat, the format is dos specific, but after changing it to the unix it works fine
I have little experience in Linux. I'm working on a remote Linux server without root privilege. After trying to install a software package by including the path variable to the .bashrc, I'm not able to access any of my file in the working directory. I'm also not able to execute any command. Always getting an error message -bash: command not found.
Whenever I login I'm getting a message:
-bash: export: `/opt/xcat/bin:/opt/xcat/sbin:/opt/xcat/share/xcat/tools:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/lpp/mmfs/bin:/usr/local/maui/sbin:/usr/local/maui/bin': not a valid identifier
Whenever I load VIM 7.0 on my machine I understand that the program loads a lot of things from the path /usr/share/vim/vim70/. Now I have install locally (in the path ./vim74/src/vim) the new version of VIM because I am not a sudo user. The problem I have is that it looks like program is searching for files in a directory that does not exist i.e. /usr/local/share/vim/. I cannot create such a directory so I wondered how could I set vim to look in the correct directory?
For reference I get error messages like
Error detected while processing /home/hep/flr09/.vimrc:
line 51:
E484: Can't open file /usr/local/share/vim/syntax/syntax.vim
Warning: Cannot find word list "en.utf-8.spl" or "en.ascii.spl"
line 292:
E484: Can't open file /usr/local/share/vim/syntax/syntax.vim
Press ENTER or type command to continue
or like
Warning: Cannot find word list "en.utf-8.spl" or "en.ascii.spl"
Error detected while processing /home/hep/flr09/.vimrc:
line 292:
E484: Can't open file /usr/local/share/vim/syntax/syntax.vim
Press ENTER or type command to continue
The following command installs Vim in /home/username/foo/ as well as all its support files:
$ ./configure --prefix=/home/username/foo && make && make install
It will create the following subdirectories and running that custom Vim will never source files from anywhere outside of /home/username/:
/home/username/foo/bin/
/home/username/foo/share/
…