I am really new on Linux drivers and I am trying to Compile Linux kernel 2.6, I did these steps so far on my Linux 4.0 1) I got Latest Linux kernel code for 2.x.y.z and Extract tar (.tar.bz3) file 2) Installed gcc, 3)Try to make below but all of them occurred with error: Error: Please help me to undrestand!
Tag: linux
What really happens when deleting file [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
Not able to change DOCTYPE line of a xml file in bash
I have a xml file with name alphabet.xml like below : – Now I want to replace <!DOCTYPE models SYSTEM “mp.dtd”> String of alphabet.xml with <!DOCTYPE models SYSTEM “/opt/nms_cif_mp/dat/mp.dtd”> code I am using is in below . But with this code replacement of the above …
parsing complex string using shell script
I’m trying the whole day to find a good way for parsing some strings with a shell script. the strings are used as calling parameter for some applications. they looks like: I’m only allowed to use shell-script. I tried to use some sed and cut commands but nothing works fine. My tries are like: that…
How to set PATH in Ubuntu 17.10 for custom path
I made a folder called bin in /home/USER/bin on this, I created a file called hello ( for example) with this code: I did execute export PATH=$PATH”:$HOME/bin” and then $ . ~/.bashrc, but when I restarted the PATH is restored to default. How can I resolve it? Thank you! Answer The user bin director…
How to skip multiple directories when doing a find
I’ve written a find function that searches for a string in each file in a given path, while skipping a list of directory names that I don’t want searched. I’ve placed this script in my .bashrc file to be called like so: The find portion works great, and it colorizes the search text so that i…
How does this Makefile work?
This is the makefile: It produces log result: I can only understand first two lines in the log. How all this files: files get to compiling? They are contained in GOOGLEAPIS_CCS variable and it is only used in makefile in string. Can you explain step by step how this actually work? Answer The following rule ma…
Ruby, ffi, and a custom C library
I’m trying to create a custom C library I can call from Ruby using FFI. My library will wrap certain libtiff functions with my own code, and the resulting higher-level functions will be called from within Ruby via the FFI interface. I’ve got test code working in C, that compiles successfully to a …
Makefile : No rule to make target
I have a problem with Makefile. It should compile a .c file to an object file only if the .c file has been modified. But I have an error when I use all rule: When I use manually it works: My work directory: Makefile content: Answer this dependency line: concatenates $(OBJ_PATH) with the object name, but there…
Makefile: Cpp Files in Different Directories, Redirect Object Files to ./obj and Executable to ./bin
my directory structure looks like this I would like to write a Makefile that will 1) create three object files, main.o, class1.o and test-wrapper-class.o and place those files in the obj directory 2) use those object files to create an executable that will be placed in the bin folder 3) have a clean that will…