View Single Post
  #1 (permalink)  
Old 07-17-2006, 06:46 PM
xico1984 xico1984 is offline
Junior Member
 
Join Date: Jul 2006
Posts: 1
Default Installing Software - Swap partition

Hi

I purchased plan Link-1. I am trying to install Mplayer http://www.mplayerhq.hu/
and i have a problem.
When put "make" the system print this:
-----------------------------------------------------------
cc -I../libvo -I../../libvo -fno-PIC -O4 -march=prescott -mtune=prescott -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_AV_CONFIG_H -I.. -I/home/plugins/MPlayer-1.0pre8/libavutil -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o mpegvideo.o mpegvideo.c
virtual memory exhausted: Cannot allocate memory
make[1]: *** [mpegvideo.o] Error 1
-----------------------------------------------------------

I am searching at google. Some people with the same problem, resolved this, with making a swap partition.

This is the code (for 256MB):

-----------------------
dd if=/dev/zero of=/swap bs=1M count=256
mkswap /swap
swapon /swap
set -o noclobber # make absolutely sure you don't clobber fstab
echo "/swap swap swap defaults,noatime 0 0" >> /etc/fstab
-------------------------

This problem is with "swapon /swap"
The system says: swapon: /swap: Operation not permitted


What is wrong?


Thanks
Reply With Quote