Tag Info

Hot answers tagged

7

You don't need to keep it. However, you may want to keep the package tarball itself for: make uninstall Generally source packages have this as a make target so that you can tidily remove the package from your system if desired. It should not depend on preserving the state of the build, so you can erase the directory and then later unpack the tarball and ...


4

The test is done by compiling a small dummy C program and by checking how the compiler names the output file. The following example is a simplified version of what configure is doing #!/bin/sh cat << EOT > dummy.c int main(int argc, char ** argv) { return 0; } EOT gcc -o dummy dummy.c if [ -f dummy.exe ] ; then # exe fi I would suggest ...


4

Installing basically means copying the files in the extracted tarball over onto your filesystem. So no, you don't need to keep the original once the contents are copied.


4

Those numbers is represent for makelevel, which let us know how sub-make relates to top-level make. This is the recursive use of make, see more details here. Digging into make source code, you can see something clearer. In main.c: /* Value of the MAKELEVEL variable at startup (or 0). */ unsigned int makelevel; and then: /* ...


2

I want to add these file into my kernel such way that when kernel start this hello.o file execute and run What you are trying to achieve shouldn't be made through kernel edition. Executing a program at boot time can be handled in much simpler ways, without need for kernel programming experience. You can: Execute it when your shell starts: Write ...


2

You need to verify $PATH and $LD_LIBRARY_PATH environment variables. make sure they are point to correct version of ffmpeg and does not include older version if LD_LIBRARY_PATH is not already setup then try this : LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ffmpeg


1

In addition to the patches listed here you need to patch link.c from vmhgfs.tar. 184a185 > #if LINUX_VERSION_CODE <= KERNEL_VERSION(3, 14, 99) 187a189,194 > #else > LOG(6, (KERN_DEBUG "VMware hgfs: HgfsReadlink: calling " > "readlink_copy\n")); > error = readlink_copy(buffer, buflen, fileName); > ...


1

Stuff in /usr/local usually supersedes stuff in /usr, so I'm a bit confused as to why you would install libraries there to have a "a nice custom distro", but then not want to compile against them. Those are the libraries the system will use actually use. Anyway, man pkg-config claims the base search path: is libdir/pkgconfig:datadir/pkgconfig where ...


1

Looking through the Wikipedia page for menuconfig I do not see a similar option. There's a bullet within that page that states the following: The help information is distributed throughout the kernel source tree in the various files called Kconfig. So one could use grep to search for whatever you wanted through these files. You can also use ? within ...


1

Or should I simply ignore it? Unused variables could be an indication of a coding mistake. If you are satisfied this is not the case and want to suppress the warning for a particular variable, you can use a (GCC specific) __attribute__ tag, e.g.: /* Unused parameter (in definition, not declaration): */ void somefunc (int x __attribute__ ((unused))) { ...


1

"Variable set but not used" warnings are informational. According to the official documentation, -Wunused-but-set-variable controls the behavior of: Warn[ing] whenever a local variable is assigned to, but otherwise unused (aside from its declaration). This warning is enabled by -Wall. The purpose is to catch situations where the programmer assigns a ...


1

In general, ./configure && make && make install without any parameters sticks everything under /usr/local, which would place foo.pc in /usr/local/lib/pkgconfig/foo.pc To make use of this, you'd need to do basically PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH} pkg-config --cflags foo, or, compile in this manner: ./configure ...


1

Ok, so I think the message was telling me to do the right thing, although it seems infeasible to sit at one's prompt and to type make over 50 plus times (may have been over 100 times), so I wrote this little while loop before I went to bed : RET=$?; while [ ! $RET -eq 0 ]; do echo " \ RETURN == ${RET} \ "; make; RET=$?; done And let it run. I did Ctrl+z ...


1

PHP extensions can be compiled statically or shared. Static compilation puts the extension directly into PHP (therefore it does not need to be loaded and cannot be unloaded). When using shared compilation --enable-calendar=shared that will create file calendar.so. You can enable or disable it by editing php.ini.



Only top voted, non community-wiki answers of a minimum length are eligible