Elasticsearch installation error: No such file or directory - linux

I'm using a linux machine. The Elasticsearch installation guide told me to simply download and unzip the file, and then run bin/elasticsearch. But when I ran it, I got this error:
$ bin/elasticsearch
-bash: bin/elasticsearch: No such file or directory
I can clearly see the elasticsearch file in my home directory, and all the files within it seem intact. What do I do?

If you are trying to access the file with:
bin/elasticsearch
You get the error.
Try to tell the full route.
First move to the directory with cd
cd route/to/your/directory
Then use . for calling from your actual position:
./bin/elasticsearch
Note: If you get an error about the access or something similar, try giving execution permission to your file:
chmod u+x ./bin/elasticsearch

Related

"bash: No such file or directory" but the file exists

I'm trying to run a specific file using the code below on desktop ubuntu
source /mnt/d/Xilinx/Vivado/2021.1/settings64.sh
However, I keep getting hit with
-bash: D:\Xilinx\DocNav\.settings64-DocNav.sh: No such file or directory
-bash: D:\Xilinx\Vivado\2021.1\.settings64-Vivado.sh: No such file or directory
-bash: D:\Xilinx\Vitis\2021.1\.settings64-Vitis.sh: No such file or directory
-bash: D:\Xilinx\Model_Composer\2021.1\.settings64-Model_Composer.sh: No such file or directory
-bash: D:\Xilinx\Vitis_HLS\2021.1\.settings64-Vitis_HLS.sh: No such file or directory
I'm confused as to why can the file not be found when I can see it existing in the folder and when I run an ls command
Here is an image of the command prompt
I have seen a few posts with similar problems but I don't quite understand their solutions. Any clarification would be appreciated.
settings64.sh file contents
source 'D:\Xilinx\DocNav\.settings64-DocNav.sh'
source 'D:\Xilinx\Vivado\2021.1\.settings64-Vivado.sh'
source 'D:\Xilinx\Vitis\2021.1\.settings64-Vitis.sh'
source 'D:\Xilinx\Model_Composer\2021.1\.settings64-Model_Composer.sh'
source 'D:\Xilinx\Vitis_HLS\2021.1\.settings64-Vitis_HLS.sh'
can you check the fill content of settings64.sh.
Because in Linux we don't mount volumes with letters like C:// or D://
According to me that script is not made for the supported OS you running on.
Let me know if I am wrong and I will edit the answer accordingly.

Linux Newb ./config: No Such file or directory

I'm new to Linux and I'm trying to install a program called OpenSSL. I'm following a guide and it says to download the tar file, so i created a directory called Website_Related with the path
~/Downloads/Website_Related
and downloaded the tar file from that directory with the command
wget http://www.openssl.org/source/openssl-1.0.2o.tar.gz
This went fine. Then the guide says to execute the following command
$ ./config \
--prefix=/opt/openssl \
--openssldir=/opt/openssl \
enable-ec_nistp_64_gcc_128
I tried executing this command from the same directory where I downloaded the file to and I get an error "No such file or directory". I also tried executing the command from my home directory and got the same error. The guide gives an explanation for the "enable-ec_nist_64_gcc_128" but not the rest of the command.
What is going on here? I did some research and saw . is often a directory having to do with configuration in your home directory, and I can see it in my home directory with
ls -a
command, but if i try to go into it with
cd .
that fails. Could someone please explain to me what this ./config command is attempting to do, and why it is failing?
Thank you.
You need to unpack it first:
tar vxf openssl-1.0.2o.tar.gz

.install Command not found while installing PopcornTime

I am trying to install Popcorntime in ubuntu 14.04 from .tar. I have extracted .tar successfully. Then according to this link I have written sudo .install while I was in my extracted folder. But I get "sudo: .install: command not found". Also there is no .install file in my extracted folder. What can I do?
I have written sudo .install while I was in my extracted folder. But I
get "sudo: .install: command not found"
The command given there isn't sudo .install; it is sudo ./install. You have missed a / in between . and install.
And, . represents current(present) directory in which you are(here /opt/popcorntime), as displayed on the terminal.
So, install is a file inside the current directory (install is a file inside the /opt/popcorntime/ directory) , which would be /opt/popcorntime here; since you have done cd /opt/popcorntime in the previous step.
I hope it resolves your query.
If the executable "install" file is not found in the extracted package then it is probably a pre-installed package. In this case there should be an executable file called Popcorn-Time, and all you have to do is type the following command ./Popcorn-Time and the application will be launched.

Trouble when running autogen.sh

I have downloaded R tree from http://libspatialindex.github.com/
Since on running ./autogen.sh I was getting file/folder not found, therefore I downloaded the file autogen.sh from the github repository given below:
https://raw.github.com/libspatialindex/libspatialindex/9a5a2f4d83c3ec7be4dbf2c8a86341703d837185/autogen.sh
Now when I run ./autogen.sh I am getting "Permission denied"
And if I run sh ./autogen.sh I am getting:
glibtoolize or libtoolize not found. Giving up!
Please suggest what should I do now
EDIT:Also I want to use libspatialindex inside my C++ project. I am using netbeans. I mean I want to use the functions inside libspatialindex inside my netbeans project. How should I use the same. Right now I have run the config and make command in a separate directory. I am not getting as to how to use them inside my project.
Install libtool from your package manager.
To fix the 'Permission Denied' error you need to edit the permissions of your autogen.sh file. Run this command:
chmod +x autogen.sh
I got this error after restoring a library from a Backup to a NTFS directory.
I discovered that another reason this can occur is if the mounted partition has noexec flag on it.
Run mount to see if noexec has been set on the partition.
Update /etc/fstab or add -o exec to the mount command.
Hope, it helps others in the same situation as me.

error: ./dist/configure line 40:conf19087.sh: No such file or directory

I get the error as above when trying to build Berkeley database version 4.5.20. I have unzipped the archive to /opt on UNIX. Please can anyone tell me what I need?
I do the following:
Uncompress berkeley-db package in
some directory. say in /opt
cd to the build_unix directory
../dist/configure
When I run the last command it gives me the error as above. Does anyone know what I am missing here? Options? Another download?
Please make sure that you have correct file permissions for the distribution folder.
Try chmod +w -R /opt/db-4.5.20

Resources