CMake skip install under Linux [closed] - linux

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I'm very new to cmake, and in my cmake script(3.12) it happens, that the following commands are executed fine under windows
add_library(${LIB_NAME} STATIC ${SOURCES})
install(TARGETS ${LIB_NAME} DESTINATION lib)
but under linux (mint 17.2) the install routine is skipped and the lib folder is empty after calling make.
Q: What has to be changed, that lib.a is copied to the lib folder.
EDIT:
The LIB_NAME is created as follow
SET(PROJECT_NAME_STR System)
SET(LIB_NAME "${PROJECT_NAME_STR}_s")

Might well be that you do not have write permissions in the install target folder. What's the value of the destination variable and how are your permissions for that target?

I solved the "problem" myself. And now is the moment where you can throw tomatoes at me.
I forgot to call make install.
Sorry.

Related

cmake gets confused and thinks that build directory is source directory [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 months ago.
Improve this question
I am trying to install opencv on my raspberry pi 4 with raspian OS.
I am using this tutorial https://docs.opencv.org/3.4/d7/d9f/tutorial_linux_install.html and I have navigated to a build directory in my source directory /home/icetea/Desktop/working_dir/opencv/build
Then I execute this command:
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/home/icetea/Desktop/working_dir/opencv
I get this error:
CMake Error: The source directory "/home/icetea/Desktop/working_dir/opencv/build" does not appear to contain CMakeLists.txt
It thinks the build dir is the source dir. My source dir does 100% contain that .txt file, but my build dir is empty. I have tried executing this command while in the source dir and I get this error:
FATAL: In-source builds are not allowed. You should create a separate directory for build files
Anybody have any insight?
Thank you very much
Smitty

Hydra Password Cracker error using cygwin64 in windows [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
Please Help i cannot install hydra password cracker using cygwin64 in windows 8.1 What should i do
Below are pics
error
error
error
Do NOT post link to images. Copy and paste the relevant part of the error.
You are missing windres, so you need the package that contains it.
To look for it, use cygcheck
assuming you want to compile for Cygwin:
$ cygcheck -p usr/bin/windres
Found 6 matches for usr/bin/windres
binutils-debuginfo-2.35.1-1 - binutils-debuginfo: Debug info for binutils
...
binutils-2.36.1-2 - binutils: GNU assembler, linker, and similar utilities
Install binutils
If instead you want to compile for Mingw64, you need the similar package.
$ cygcheck -l mingw64-x86_64-binutils | grep windres
/usr/bin/x86_64-w64-mingw32-windres.exe
Are you sure to have the proper compiler installed ? binutils is a requirement of any compiler.

bash: npm: command not found after downloading Node.js [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I uninstalled Node.js and reinstalled it to fixed a different error.Now In visual studio terminal for bash and cmd, I am getting
bash: npm: command not found.
Copy the address of file where your nodejs is stored and then go to Enviroment variables advance setting select "path" from upper window list,
then click edit
and then add a ";" in given path then paste the copied address of the nodejs file
Now you can run npm from anywhere !
Uninstall and Reinstall fixed it

Lfs 8.4 ch8. 3 : kernel config fail [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I am currently following the book Linux From Scratch v8.4, i am at the kernel configuration part, part 8.3, and when i run make defconfig or make menuconfig, i have this error:
... YACC scripts/kconfig/zconf.tab.c
bison: m4 subprocess failed: No such file or directory
make[1]: *** [scripts/Makefile.lib:196: scripts/kconfig/zconf.tab.c] Error 1
make: *** [Makefile:544: defconfig] Error 2 ...
Can anyone could help me how i could resolve this please ? i really really really don't want to start all over again... i followed the book and so far i didn't have any issues. I tryed to rebuild the m4 package and reinstall it but still doesn't work. How do i do to generate this zconf.tab.c ?
Thanks a lot
Problem solved in case someone else run into this issue, my m4 package was being installed only in /usr/bin, creating a symlink to /bin solved the issue.
ln -s /usr/bin/m4 /bin/m4

Linux console: git command not found on x64 Cent OS [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I have a completely fresh install of 64 Bit Cent OS 5.7, this is in VirtualBox on top of 64-bit XP.
I'm trying to install SSU.
Problem: The command 'git' was not found. See "code" below please.
Have tried looking this up: /usr/local/git/ does not exist: git: command not found (on OS X 10.5)
I don't care about source code: I just want git to work so SSU will install so I can try to access the bank on what seems like a huge whim.
I am signed in to Gnome as root and seem to be able to access my computer normally without being harassed about passwords excessively and can create or edit files.
[root#localhost ~]# $ git clone https://github.com/wesabe/ssu
bash: $: command not found
Concerns
Unfortunately every single time I ask these kinds of questions and don't make clarifications I end up having to make those clarifications. So...
No negativity or rudeness intended what-so-ever: if the answer involves editing a text file or copy-and-paste actions please tell me the locations to do so in the file manager instead of console commands. I'm perfectly okay copying and pasting console commands for things that really should be done in the console though.
Note: there appear to be numerous "git" commands and numerous "ssu" commands. I do NOT know the difference between them and would really prefer someone who has solid expertise to answer so that I nor others end up accidentally trashing our copies of Linux as it's been very difficult to get anything to work and stay working thus extending my personal stay with XP.
I will be more than happy to both accept an answer and thumbs it up should it be helpful.
I would first try installing git. As root:
yum install git
According to here,
yum install git-core
If that doesn't work you could add the EPEL source. There are also RPMs for git.

Resources