make: *** No rule to make target 'population'. Stop. cs50 [closed] - cs50

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 last month.
Improve this question
make: *** No rule to make target 'population'. Stop.
No rule to make target 'population'. Stop.
I'm trying to compile cs50's population problem set-1 population. it doesn't works , showing this error message on terminal "make: *** No rule to make target 'population'. Stop.",
later on I tried other file to compile it says also same ..
thanks in advance

The terminal shows that make is being run from the home directory (`~/).
The file tree shows that population.c lives in ~/pset1/hello directory.
cd to the directory where the source code exists and then execute make.

you are in wrong directory, use ls in terminal to show you the directory you're in include which files. you are in some directory the file you want to compile, didn't create in this directory you are, use pwd in terminal to show your the address(path).

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

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

CMake skip install under Linux [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 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.

how to solve "unzip: cannot find or open" error in linux OS [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 2 years ago.
Improve this question
I tried to extract my file on the linux command line:
unzip myfile.zip
But this error occurred:
unzip: cannot find or open myfile.zip, myfile.zip.zip or myfile.zip.ZIP
unzip cannot find the file myfile.zip. Make sure the file exists in your current working directory. You can also try to provide an absolute path.
unzip -d /zip osTicket-v1.10.zip
/zip is a directory
osTicket-v1.10.zip = zip file
Make sure the folder was not partially transferred. I got this error due to an incomplete folder sftp. When I re-transferred it unzipped fine.
If your zip file contain space like "my file.zip" try to remove/replace space in my case i renamed "my_file.zip" and then the command (unzip my_file.zip) worked fine.

Linux zip doesn't maintain directory structure [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 4 years ago.
Improve this question
I have a directory I am trying to zip on Linux before sending it to Windows.
I thought it worked with this command:
zip -r directory.zip directory
However when I looked at the directory it contained only the files, no folders.
It's as if the -j command is the default, which is confusing.
I looked in the manual and I could not see any means of forcing it to maintain the directory structure in the zip.
Any ideas?
It was an unzipping issue, not a zipping issue.
The unzip command required -d to maintain the directory structure.
wzunzip -d directory.zip

Resources