I am try to use .autogen.sh to build the files from this repository:
https://github.com/cnangel/pidgin-libqq
It works when I input the command (.autogen.sh) from the directory(/project) where everything is unzipped.
But when I want to build them from different directory (/test), it shows the error: aclocal: error: 'configure.ac' is required. I believe this is because when running autogen.sh in /project from /test directory, the autogen.sh still looks for configure.ac in /test directory.
How should I rewrite the autogen.sh file for it to recognize/scan the configure.ac file in the directory (/project) where they both located?
Appreciate any suggestion for this problem!
Related
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
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
I have the folder/files /sources/{configure.ac,Makefile.am,...}
How can I execute Automake command so files/folder configure, Makefile, and autom4te.cache are not generated in /sources but in /mydir ?
Thanks
The directory from which you run configure will be the root directory of where the generated files are put.
cd /mydir
/sources/configure
(Although beware; this is not as common as running ./configure right in the source tree. You're supposed to account for it when writing a GNU-compliant configure script, but nonetheless some packages will not build this way.)
I want to tell CMake to output files and folders to a different folder instead of the current folder. I'm talking about the generated files by CMake below:
file: CMakeCache.txt
dir: CMakeFiles/
file: Makefile
dir: bin/
file: cmake_install.cmake
Is there a way to let CMake output these files and folders in another folder?
I wrote a tool that executes CMake from the root of the project-directory, as a result my project-directory gets messed up with the generated files and folders listed above.
Here a link what I want:
http://pastebin.com/cxykCi5M
Hope this will clarify more what I want.
You can use the undocumented command line options -B and -H to specify your build directory and source directory respectively. So, from your project's root, you can do:
cmake -Bbuild -H.
(Where build is your build directory path.)
I am executing the following command, which is resulting in the error below. I have chmod 777 to all directories involved. The css and image files are written successfully, but the html file(s) is not getting generated. What am I do worng?
perl genhtml -o coverage jsTestDriver.conf-coverage.dat
Reading data file jsTestDriver.conf-coverage.dat
Found 4 entries.
No common filename prefix found!
Writing .css and .png files.
Generating output.
mkdir: cannot create directory '': No such file or directory
genhtml: ERROR: cannot create directory !
Try this cross platform alternative to lcov genhtml - requires no cygwin. http://code.google.com/p/jgenhtml/