kowr / compcache

Automatically exported from code.google.com/p/compcache
0 stars 0 forks source link

Unable to compile #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. decompress the archive - ok
2. run the "make" command - problem

What is the expected output? What do you see instead?

Instead of compiling the program, I get an error from the terminal:

licata@HAL9000:~/compcache-0.5.3$ make
make -C /lib/modules/2.6.27-8-eeepc/build \
        M=/home/licata/compcache-0.5.3/sub-projects/allocators/xvmalloc-kmod modules
make: *** /lib/modules/2.6.27-8-eeepc/build: No such file or directory.  Stop.
make: *** [all] Error 2

What version of the product are you using? On what operating system?

I'm using the latest version of compcache present on this website: 0.5.3
I run on Easy peasy, the ubuntu intrepid version optimized for eeepc

Please provide any additional information below.

I have never installed or compiled compcache before, but after removing the
swap partition from my HD I found that some swap were still on the system.
Using the command cat/proc/swaps    I get this informations:

licata@HAL9000:~/compcache-0.5.3$ cat /proc/swaps
Filename                Type        Size    Used    Priority
/dev/ramzswap0                          partition   516108  0   100

If I try to unload this ramzswap with the unuse command without compiling I
get this:

licata@HAL9000:~/compcache-0.5.3$ ./unuse_ramzswap.sh 
ramzswap module not loaded

But if I try to load the ramzswap I get this:

licata@HAL9000:~/compcache-0.5.3$ ./use_ramzswap.sh 
ramzswap swap device already active.

Any suggestion?

Original issue reported on code.google.com by enrico.l...@gmail.com on 11 Apr 2009 at 5:17

GoogleCodeExporter commented 9 years ago
> licata@HAL9000:~/compcache-0.5.3$ make
> make -C /lib/modules/2.6.27-8-eeepc/build \
>       M=/home/licata/compcache-0.5.3/sub-projects/allocators/xvmalloc-kmod modules
> make: *** /lib/modules/2.6.27-8-eeepc/build: No such file or directory.  Stop.
> make: *** [all] Error 2

Kernel headers needed to build compcache are missing on your system. On Fedora 
these
are provided by kernel-devel and kernel-headers package. Not sure about names 
for
equivalent packages on Ubuntu - I think its linux-headers.

> I have never installed or compiled compcache before, but after removing the
> swap partition from my HD I found that some swap were still on the system.
> Using the command cat/proc/swaps    I get this informations:

> licata@HAL9000:~/compcache-0.5.3$ cat /proc/swaps
> Filename              Type        Size    Used    Priority
> /dev/ramzswap0                          partition 516108  0   100

Looks like your version of Ubuntu comes with compcache built into the kernel by
default.  Not sure which version of compcache they included.

Since your kernel has compcache 'built-in' (as opposed to compiled as separate
module), I don't think you can override it with any other version of compcache. 
You
will have to stay with version included in your kernel.

Original comment by nitingupta910@gmail.com on 11 Apr 2009 at 7:06

GoogleCodeExporter commented 9 years ago
Ok, since compcache is "built in" is there a way to configure it?
How can I change the size of the ramzswap or enable/disable it?
Where can I find the commands to do such operations?

Thanks very much for the quick and accurate support

Original comment by enrico.l...@gmail.com on 11 Apr 2009 at 7:17

GoogleCodeExporter commented 9 years ago
sudo nano /etc/initramfs-tools/initramfs.conf

comment out the compcache section.

optionally change update_initramfs=yes to update_initramfs=all in
/etc/initramfs-tools/update-initramfs.conf to have it apply to every kernel and 
not
just the currently running one.

sudo update-initramfs -u

that should do it. if not, you are starting it with a script in /etc/init.d/ so 
just
delete that and do a sudo update-rc.d compcache remove. 

Original comment by sarv...@gmail.com on 11 Apr 2009 at 8:42

GoogleCodeExporter commented 9 years ago
I hope sarvatt's reply answers your question. Thanks sarvatt.

Original comment by nitingupta910@gmail.com on 22 Apr 2009 at 9:02