I am trying to add files to a directory that I created, and I attempted to use
cvs add filename
but that did not work, as I got the error message:
-bash: cvs: command not found
How do I fix this and be able to add files to a directory?
It's either cvs has not been installed or not found in the environment path variable e.g. $PATH. If you're sure that you have installed cvs successfully, try to execute the cvs command by using its absolute path.
Related
I am using zip in Cygwin under Windows 10 and after installing 7-Zip on my system and then uninstalling it, I get the following error when using zip on the command line in Cygwin when trying to zip any files:
zip warning: name not matched: Files\7-zip
zip warning: name not matched: testing
E.g. zipping 2 files a and b:
zip testing a b
will give the error. How do I get rid of this nuisance?
Reinstalling zip did not help.
After a further extensive search with no answers I found out what the problem was.
7-Zip sets up an environment variable ZIP=C:\Program Files\7-zip and for some reason the existence of a ZIP variable interferes with the GNU zip utility.
I unset ZIP by doing ctrl-Esc and typing env which brought up the control panel option of "Edit environment variables for your account" and removed the ZIP variable and it now works.
I'm new on mac. I just remove gcloud folders. And now when I open my command line window I always see next:
-bash: /Users/myuser/gcloud/google-cloud-sdk/completion.bash.inc: No such file or directory
-bash: /Users/myuser/google-cloud-sdk/path.bash.inc: No such file or directory
-bash: /Users/myuser/google-cloud-sdk/completion.bash.inc: No such file or directory
I know that made mistake removing not with gcloud command. But we have whad we have. So the main question is how to not get current logs when opening command line window on mac?
The Cloud SDK makes only the following changes to the filesystem on installation:
Adds and populates the Cloud SDK root directory, where you directed the installer.
Configuration goes in the ~/.config/gcloud directory (by default).
Modifies the RC files that you specified on installation (in response to the questions Modify profile to update your $PATH and enable shell command
completion? (Y/n)? and Enter a path to an rc file to update, or leave blank to use [/Users/$USER/.bash_profile]:.
These paths are slightly different on different platforms, but the three types of files (installation files, per-user config, and .rc files) are the same.
I'm currently installing spark using cygwin terminal, I followed the steps indicated here, http://www.tutorialspoint.com/apache_spark/apache_spark_installation.htm, everything was fine until the last step..
I added the "export PATH=$PATH:/usr/local/spark/bin" line to ~/.bashrc file.
When I run the $spark-shell command, it gives me this error..
/usr/local/spark/bin/spark-class: line 86: C:\Program Files\Java\jdk1.7.0_75\bin/bin/java: No such file or directory
I tried searching for answers online but unfortunately nothing worked for me.
Please help. Thanks!
The problem is in:
/usr/local/spark/bin/spark-class: line 86: C:\Program Files\Java\jdk1.7.0_75\bin/bin/java: No such file or directory
You have two "bin" - one from Windows "\bin" and one from cygwin "/bin"
You can modify the JAVA_HOME environment variable - and set it to be C:\Program Files\Java\jdk1.7.0_75 (or the actual path of jdk)
I'd make a backup of /usr/local/spark/bin/spark-class and try to change the following line in /usr/local/spark/bin/spark-class
RUNNER="${JAVA_HOME}/bin/java
to be:
RUNNER="${JAVA_HOME}\java
And then run again the $spark-shell command
Yes, I have thoroughly searched for another answer to this question but have yet to find one.
I tried installing first by following the instructions on this page: http://www.elastic.co/guide/en/elasticsearch/reference/current/setup-repositories.html
I am not sure what to do after this step. It seems that is has installed correctly, but I don't know how to run it. (I am using PuTTY.) Can I import it into my module now and being using it, or is there something else I should do?
Here are some attempts I've made:
deloacha#azdev-deloacha:~$ bin/elasticsearch.bat
-bash: bin/elasticsearch.bat: No such file or directory
deloacha#azdev-deloacha:~$ cd elasticsearch-1.5.1/bin
-bash: cd: elasticsearch-1.5.1/bin: No such file or directory
deloacha#azdev-deloacha:~$ cd elasticsearch-1.5.1
-bash: cd: elasticsearch-1.5.1: No such file or directory
deloacha#azdev-deloacha:~$ cd ..
deloacha#azdev-deloacha:/home$ cd elasticsearch-1.5.1
-bash: cd: elasticsearch-1.5.1: No such file or directory
Installing the way as provided in the document can sometimes leads to confusion. You need to find the directory containing the elasticsearch files. most probably it'll be at "/etc/elast...."
Another easy way of installation follow the steps:
make a directory where you want to install
go to that directory and download elasticsearch there using
wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.5.1.tar.gz or curl
extract files: tar -zxvf elasticsearch-1.5.1.tar.gz
cd elasticsearch-1.5.1
You need to have java 7 on your system. you can start elasticsearch using "bin/elasticsearch -d" . "-d" is to run in detached mode.
Logs are by default in the location elasticsearch-1.5.1/logs. Check logs for any error during start up.
check status at: http://localhost:9200 or http://{system ip}:9200
I am trying to use the git-hooks tool on Windows. But, I cannot figure out how to install the git-hooks.sh file such that I can type git hooks --install in Git Bash.
I tried putting it in C:\Program Files (x86)\Git\git, where a lot of other git-*.sh files seem to live. But no luck.
What's the secret?
Like the git-hooks installation instructions say, you need to "Add git-hooks to your PATH environment variable so 'git hooks' can be run" (or copy git-hooks to a directory that already is in your PATH). Neither the C:\Program Files (x86)\Git\git (does that directory really exist for you, I do not see it here) nor the C:\Program Files (x86)\Git\libexec\git-core directories are in your PATH by default. Although in fact any directory which is in your PATH would work, I'd recommend to use the directory where git.exe is located, usually C:\Program Files (x86)\Git\bin. Also be sure to keep the original git-hooks file name, do not rename the file to git-hooks.sh although it is a shell script.