Tag Info

New answers tagged

1

You need to edit your own module makefile. Kernel build makefiles are a little different from regular makefiles: the target needs to be modules, not the name of your module (test), which only needs to be specified via the obj-m variable: obj-m += test.o all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules


0

if you don't have sudo access, the solution is as follows: download the latest (or whichever) release of ncurses from http://ftp.gnu.org/pub/gnu/ncurses/ run these bash commands: mkdir ~/usr/local cd <path_to_ncurses> tar xzvf <ncurses>.tar.gz # change the tar command if it is not a tar.gz cd <ncurses> ./configure ...


2

You are compiling the code, not running it, the correct procedure is: Create the source file (test.c) Compile it with gcc test.c -o test Run it with ./test Also you can make a oneliner with these commands: gcc test.c -o test; ./test


0

Not likely. When you compile c/c++ code on a linux machine it (typically) forms an ELF binary, which windows (and mac) cannot use. You can, however, use mingw-w64 to crosscompile from a linux host to a windows binary, and you can do similar things for cross compiling to mac (but the process is by and far more complicated). Then comes the fact you mention ...


0

You don't compile an header file (altough it's possible to do so), you compile a source file which might include some header files, but whether the required header files have been included in the source file it's not (or shouldn't be) something up to you, it's something up to the developer: if program.c has been written correctly, it will list its needed ...


8

You have been correctly informed that Ubuntu is indeed an Open Source Project. While its completely possible to compile each package - and spend the hour(s) it will take to undertake such a task - it's not really recommended for first time users. Judging by the varying levels of questions here - it seems like this would be a good thing for you to explore in ...


0

copy the source file to a directory where you have write permissions (so that the compiler is able to create the executable) e.g. mkdir ~/src && cd ~/src cp /usr/share/doc/libcurl4-doc/examples/ftpget.c ./ compile and link the file using gcc gcc -Wall -o ftpget ftpget.c -lcurl This will create an executable called ftpget which you should be ...


0

Your accepted answer didn't work for me. A workaround suggested here https://bugs.launchpad.net/ubuntu/+source/ubuntu-touch-meta/+bug/1299441 was to delete the CMakeLists.txt.user each time before starting qtcreator. But updating qtcreator to version 3.1 worked for me.


0

I was able to get it to compile with the help of a couple google searches on the specific errors. The one you got fatal error: openssl/ssl.h: No such file or directory compilation terminated. and the one I got fatal error: netlink/genl/genl.h: No such file or directory compilation terminated after getting past the first one. The upshot is I installed libnl1, ...


0

How about, alias g++='g++ -g' ?


1

Not sure if I understand correctly, but based on these implicit rules: https://www.gnu.org/software/make/manual/make.html#Implicit-Rules you want to set your $CFLAGS therefore your solution should be export CFLAGS='-g' or in case you had already set something in your CFLAGS export CFLAGS="$CFLAGS -g"


0

Similarly to @Will Wolcott's answer, the recent changes in vmware-tools-patches works around the issue for me on 14.04 with kernel 3.13.


0

I was having the same problem (but with 3.23.1 driver) and in my case updating the kernel to LTS Utopic solved it: # uname -a Linux 3.13.0-46-generic #77-Ubuntu SMP Mon Mar 2 18:23:39 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux # apt-get install linux-generic-lts-utopic # reboot # uname -a Linux 3.16.0-31-generic #41~14.04.1-Ubuntu SMP Wed Feb 11 19:30:13 UTC ...


0

We need to negotiate the fact that make uninstall would not always work, so below is more of a proactive solution. This involves the use of the paco program which is available in the Ubuntu Software Center. Once we have installed paco, we can use it the log mode when we "make install" a program. Paco acts like a wrapper for your "make install" and creates a ...


1

One possible reason for the discrepancy is that the installed packages for zlib1g-dev and python are of the i386 architecture, while your base system is something else; probably amd64 (aka x86_64). Unless your build dependencies are explicitly marked as being satisfiable by a package from a different architecture, those packages you have installed wouldn't ...


1

The date-time warning is new in gcc 4.9 I think - it is possibly turned on implicitly by -Wall (and turned into an error implicitly by -Werror). You could try turning it off explicitly using the -Wno- form i.e. by adding -Wno-error=date-time to the CFLAGS.


0

You are missing the libboost-python-dev package. You can install it by running: sudo apt-get install libboost-python-dev


1

Tried the following on 14.04: Go to recording.h and recording.cpp files found under sctk-2.4.0/src/asclite/core and change all occurrences of Filter::Filter* to ::Filter* And try again, it should compile.


2

This typically indicates that you haven't installed some dependency of the program you are trying to compile. Depending on the header file in question and the program you are trying to compile, you have a couple of options: Target software exists in the Ubuntu repositories Sometimes you want to compile from source a package already provided by Ubuntu (to ...


1

You probably don't have libksba-dev installed. Install it: sudo apt-get install libksba-dev


1

source file name is basic.c #include <linux/init.h> #include <linux/module.h> /*MODULE_LICENSE("Dual BSD/GPL");*/ static int hello_init(void) { printk(KERN_ALERT "Hello, world\n"); return 0; } static void hello_exit(void) { printk(KERN_ALERT "Goodbye, cruel world\n"); } module_init(hello_init); module_exit(hello_exit); make file ...


3

The tools can be patched manually. In vmhgfs.tar, inode.c d_alias must be changed to d_u.d_alias , put back to the tar and then recompile tools. A script that does that (tested on 32-bit ubuntu 14.04, vmware workstation 11.1 on a windows host) is here: #!/bin/sh -x cd /usr/lib/vmware-tools/modules/source tar xf vmhgfs.tar grep -q d_u.d_alias ...


1

I had the same experience after updating to kernel 3.13.0-46. According to vmware-tools-patches, there isn't a patch available. The patches do not yet apply successfully with the following Linux kernels: 3.13.x I fixed vmhgfs by: Reverting to kernel version 3.13.0-45, either by booting into an older version or rolling back your kernel upgrade ...


0

Installing libdbus-1-dev fixed it for me.


0

You need to install the PCRE development files package: sudo apt-get install libpcre3-dev If the build configuration script still doesn't find it (which I find unlikely, because the header files are placed in a standard location), use: ./configure --pcreinclude /usr/include


0

Mine seem to line up. I suggest that your local package lists need updating with a sudo apt-get update. If that doesn't help, add the output of apt-cache policy libxml2{,-dev} to your question please. $ apt-cache policy libxml2{,-dev} libxml2: Installed: 2.9.1+dfsg1-3ubuntu4.4 Candidate: 2.9.1+dfsg1-3ubuntu4.4 Version table: *** ...


1

Open a terminal and type: sudo blkid Find and copy needed uuid to reproduce it in fstab then run: sudo gedit /etc/fstab add to the end lines like this (e.g.): #My-Partition UUID=xxxxxxxxxxxxxxx /media/Robbino1 ext3 defaults 0 1 Where xxxxxxxxxx is /dev/sda uuid that you copied, then reboot. You can also manually change permissions ...


0

Look in /etc/fstab and see where the partitions are mounted. Edit fstab to alter where the partitions are mounted and the name they are mounted under. eg. I have /dev/sdb2 mounted under /archive .. $df -h /dev/sdb2 139G 56G 76G 43% /archive $blkid /dev/sdb2: LABEL="archive" UUID="d3cf3600-f3d8-4ab8-8537-349dbeab7f1b" TYPE="ext4" $cat ...


0

" I get this result: g++: error: : No such file or directory g++: fatal error: no input files compilation terminated." Self-explanatory there. Make sure you are using the correct file path. Use an IDE, if you want to save the trouble.



Top 50 recent answers are included