LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   gpm-1.20.6-make install-gpm error (https://www.linuxquestions.org/questions/linux-from-scratch-13/gpm-1-20-6-make-install-gpm-error-879610/)

janakiramulu 05-09-2011 04:33 AM

gpm-1.20.6-make install-gpm error
 
i done lfs-6.7
now i moved to BLFS
when i installing GPM-1.20.6

-bash-4.1#pwd
/sources/gpm-1.20.6

but when i try to configuring gpm

-bash-4.1#make install-gpm
result
no git avilable ,not updating version
make:***No rule to make target 'install-gpm'.stop


[i downloaded from this site:http://www.nico.schottelius.org/soft....6.tar.bz2]-as book mentioned
why???
what would be the problem

druuna 05-09-2011 06:53 AM

Because make install-gpm isn't part of the gpm build.....

(Here we go again) As stated in the book:
Quote:

Boot Script

Install the /etc/rc.d/init.d/gpm init script included in the blfs-bootscripts-20100825 package.
make install-gpm
I also have the feeling you did not:
- read chapter 2, especially the BLFS Boot Scripts part,
- do chapter 3, otherwise you would have come across this issue already.

Sigh......

janakiramulu 05-10-2011 12:18 AM

hi druuna,before doing the things i want to understand the things first then i will move

what i am understand[i read once] from blfs book is:
1)chapter 1,2 is for basic information right?[we have to read it]
2)blfs work will start from chapter 3,but before this chapter-3 i need to install gpm[for mouse]
3)in gpm
below one is non root user[in my case user is janu]
./configure --prefix=/usr --sysconfdir=/etc &&
make

below is as root

make install &&
install-info --dir-file=/usr/share/info/dir /usr/share/info/gpm.info &&
ln -v -s libgpm.so.2.1.0 /usr/lib/libgpm.so &&
install -v -m644 conf/gpm-root.conf /etc &&
install -v -m755 -d /usr/share/doc/gpm-1.20.6 &&
chmod -v 755 doc/{changes,support} &&
chmod -v 644 doc/{changes/*,support/*,FAQ,HACK_GPM,README*} &&
cp -v -R doc/{FAQ,HACK_GPM,README*,changes,support} /usr/share/doc/gpm-1.20.6

4)for this command 'make install-gpm'
first i need to download blfs-bootscript package to /sources dir,there i need to untar it
then cd into blfs-bootscript dir:like
-bash-4.1#pwd
/sources/ blfs-bootscript
-bash-4.1# make install-gpm

is right?

5)i need to create following cat command 'in gpm extracted dir' right?
[means -bash-4.1#pwd
/sources/gpm-1.20.6

-bash-4.1# cat /etc/sysconfig/mouse file
MDEVICE="/dev/input/mice"[because i am using pc-desktop,usb mouse]
PROTOCOL="imps2"
GPMOPTS="

is this right?
or shall i read it once ?

janakiramulu 05-10-2011 03:35 AM

> 1 step)
> i created file cat > /etc/sysconfig/mouse
> message was not created mouse ,then unfortunaltely i deleted sysconfig dir in etc/dir
>
[how to get back those other files other than mouse in /etc/sysconfig dir*]
>
> 2-step)i created mkdir sysconfig dir in etc/ dir
> then again i created file cat > /etc/sysconfig/mouse
> this time k
>
> 3 step) i rebooted
> on screen below message
> message /etc/rc.d/init.d/rc:line15:/etc/sysconfig/rc:No such file or
> directory
> INIT:id "1"respawning too fast:disabled for 5 minutes
> INIT:id "3"respawning too fast:disabled for 5 minutes
> INIT:id "5"respawning too fast:disabled for 5 minutes
> INIT:id "4"respawning too fast:disabled for 5 minutes
> INIT:id "6"respawning too fast:disabled for 5 minutes
> INIT:no more processes left in this runlevel
> INIT:id "3"respawning too fast:disabled for 5 minutes
> INIT:id "5"respawning too fast:disabled for 5 minutes
> ........................................ going on........

druuna 05-10-2011 03:38 AM

Quote:

Originally Posted by janakiramulu (Post 4351679)
4)for this command 'make install-gpm'
first i need to download blfs-bootscript package to /sources dir,there i need to untar it
then cd into blfs-bootscript dir:like
-bash-4.1#pwd
/sources/ blfs-bootscript
-bash-4.1# make install-gpm

is right?

Did you have any problems when you executed this? Experiment a bit, you can only learn by making mistakes and finding out what you did wrong. If I tell you "Yes, this is correct", you wont learn anything at all.

A tip: extract the blfs bootscripts in /etc/rc.d/init.d. I personally think this is a more suitable location (you might remove the sources directory at one point).

Quote:

5)i need to create following cat command 'in gpm extracted dir' right?
is this right?
No it is not. The location of the file that will be created is inside the cat command, it doesn't matter where you execute it.

Code:

cat > /etc/sysconfig/mouse << "EOF"
# Begin /etc/sysconfig/mouse

MDEVICE="<yourdevice>"
PROTOCOL="<yourprotocol>"
GPMOPTS="<additional options>"

# End /etc/sysconfig/mouse
EOF

The above part does the following: It creates a file called /etc/sysconfig/mouse and fills that file with everything between EOF and EOF (a so called HERE-Document).

druuna 05-10-2011 03:41 AM

Quote:

Originally Posted by janakiramulu (Post 4351820)
then unfortunaltely i deleted sysconfig dir in etc/dir

> 2-step)i created mkdir sysconfig dir in etc/ dir

Recreating that directory isn't enough. While building LFS more files were created in that directory. You need to check all the steps in LFS chapter 6 (and possibly 7/8) to find out which files you need to recreate.

janakiramulu 05-10-2011 04:02 AM

k thanks for reply,i got that point

see my etc/sysconfig/mouse file in 5) on post#3

after rebooting still that lines are going on since 1 hour -step3) on post#4
is that because of we missed some[Those files would have come from lfs-how to get back those]files in /etc/sysconfig dir??

what to do in my case ,plz suggest any idea

druuna 05-10-2011 05:45 AM

Quote:

Originally Posted by janakiramulu (Post 4351842)
k thanks for reply,i got that point

see my etc/sysconfig/mouse file in 5) on post#3

after rebooting still that lines are going on since 1 hour -step3) on post#4
is that because of we missed some[Those files would have come from lfs-how to get back those]files in /etc/sysconfig dir??

what to do in my case ,plz suggest any idea

See post #6: You need to recreate all the files that are supposed to be in /etc/sysconfig/. The only way you can find out which files that are: Check all of chapter 6 of the LFS book.

janakiramulu 05-10-2011 06:23 AM

k,thanks druuna
k let me check[using lfs-livecd]chapter6,(possible 7,8)

janakiramulu 05-11-2011 01:27 AM

hi duuna
today i rebooted system
i inserted lfs-live cd started checking like below:
1]i done chapter2.4 to chapter4
2]then exited from lfs user then root[ / ]# chapter5.33,after this return root[ / ]#
3]then root[ / ]#here i done chapter 6.2,6.2.1,6.2.2,6.2.3
4]then root[ / ]#6.63. Cleaning Up ,result is root[ / ]#[in white]
5]root[ / ]#[in white]here i redone chapter7
6)then root[ / ]#[in white] chapter 8,in chapter 8:
my fdisk -l :result is sda1-lfs,sda2-swap,sda3-rest partition[i mounted to /media]
but in my fstab file,i used below
/dev/hda1-ext3,/dev/hda2-swap
then root[ / ]#[in white]8.4.2. Setting Up the Configuration

grub-install /dev/sda [here i remove '--grub-setup=/bin/true' part because i dont have any other os[like windows] this time]
result is below:
installtion finished,no error reported
7]then root[ / ]#[in white]grub-mkconfig -o /boot/grub/grub.cfg
result is below
generating grub.cfg..........
found linux image:/boot/linux-2.6.35.4-lfs-6.7
done
[in boot/grub/grub.cfg file>
some starting part
### BEGIN /etc/grub.d/10_linux ###
menuentry "GNU/Linux, Linux 2.6.35.4-lfs-6.7" {
insmod ext2
set root='(hd0,1)']
8]root[ / ]#[in white]/sbin/reboot
...
grub> root (hd0,1)
grub> kernel /boot/grub/core.img
grub> boot
after issuing above command,its rebooted then its not booting into grubvvvvvvv[its booting into lfs live cd]
[ in /mnt/lfs/ existed this file 'grubvvvvvvv']

am i done any mistake??

janakiramulu 05-11-2011 02:45 AM

hi druuna
this time i removed lfs-livecd from cd-rom,
on grub menu i selected 'GNU-LINUX.linux -lfs-6.7'
after some time following message
FAILURE:
file system errors were encountered that could not be fixed automatically.this sysytem cannot continue to boot and will therefore be halted until those errors are fixed manually by a system administrator.
after you press enter,this system will be halter and powered off.

press enter to continue..............

what to do??
any solution?

janakiramulu 05-11-2011 03:17 AM

how to fix that problem[file system errors] from option 'linux -lfs-6.7(recover mode)-on grub menu

janakiramulu 05-12-2011 02:00 AM

hi druuna
i fix the problem
this time my lfs-is working great


thanku


All times are GMT -5. The time now is 09:43 AM.