LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 06-21-2009, 04:05 AM   #1
arielsegal
Member
 
Registered: Jul 2007
Posts: 38

Rep: Reputation: 15
Problem installing bash-3.2 (5.15 in the book v. 6.4) - I found a solution


I want to share with you a problem I encountered while I installing bash-3.2 (5.15 book v. 6.4)
I got the following error:
PHP Code:
rm -f ru.gmo && /usr/bin/msgfmt ---statistics -o ru.gmo ru.po
ru
.po:21:9invalid multibyte sequence
ru
.po:21:10invalid multibyte sequence
ru
.po:21:11invalid multibyte sequence
ru
.po:21:12invalid multibyte sequence
ru
.po:21:13invalid multibyte sequence
ru
.po:21:14invalid multibyte sequence
ru
.po:21:15invalid multibyte sequence
ru
.po:21:16invalid multibyte sequence
ru
.po:21:17invalid multibyte sequence
ru
.po:21:18invalid multibyte sequence
ru
.po:21:19invalid multibyte sequence
ru
.po:21:20invalid multibyte sequence
ru
.po:21:22invalid multibyte sequence
ru
.po:21:23invalid multibyte sequence
ru
.po:21:24invalid multibyte sequence
ru
.po:21:25invalid multibyte sequence
ru
.po:21:26invalid multibyte sequence
ru
.po:21:27invalid multibyte sequence
ru
.po:21:29invalid multibyte sequence
ru
.po:21:30invalid multibyte sequence
/usr/bin/msgfmttoo many errorsaborting
make
[2]: *** [ru.gmoError 1
make
[2]: Leaving directory `/mnt/lfs/sources/bash-3.2/po'
make[1]: *** [stamp-po] Error 2
make[1]: Leaving directory 
`/mnt/lfs/sources/bash-3.2/po'
make: [install] Error 2 (ignored) 
After some research, I have found out that this error is related to Russian language support.

Since I do not need Russian language support, I have changed some things so there will be no Russian support.
I have removed the file /mnt/lfs/sources/bash-3.2/po/ru.po.
In /mnt/lfs/sources/bash-3.2/po/Makefile I removed all reference to ru.po and to ru.gmo, and reinstalled.
This worked for me.
Here is the diff from the original Makefile:
PHP Code:
44,46c44,46
POFILES =  en@quot.po en@boldquot.po ru.po
GMOFILES =  en@quot.gmo en@boldquot.gmo ru.gmo
UPDATEPOFILES =  en@quot.po-update en@boldquot.po-update ru.po-update
---
POFILES =  en@quot.po en@boldquot.po 
GMOFILES =  en@quot.gmo en@boldquot.gmo 
UPDATEPOFILES =  en@quot.po-update en@boldquot.po-update 
125c125
CATALOGS =  en@quot.gmo en@boldquot.gmo ru.gmo
---
CATALOGS =  en@quot.gmo en@boldquot.gmo 
The results of the reinstallation
PHP Code:
cd ./po/ ; make  DESTDIRinstalldirs )
make[1]: Entering directory `/mnt/lfs/sources/bash-3.2/po'
/bin/sh /sources/bash-3.2/./support/mkinstalldirs /tools/share
if test "bash" = "gettext-tools"; then \
      /bin/sh /sources/bash-3.2/./support/mkinstalldirs /tools/share/gettext/po; \
    else \
      : ; \
    fi
make[1]: Leaving directory 
`/mnt/lfs/sources/bash-3.2/po'
/usr/bin/install -c -m 0755 bash /tools/bin/bash
/usr/bin/install -c -m 0555 bashbug /tools/bin/bashbug
( cd ./doc ; make  \
        man1dir=/tools/man/man1 man1ext=.1 \
        man3dir=/tools/man/man3 man3ext=.3 \
        infodir=/tools/info htmldir= DESTDIR= install )
make[1]: Entering directory `/mnt/lfs/sources/bash-3.2/doc'
/bin/sh ../support/mkinstalldirs /tools/man/man1
/bin/sh ../support/mkinstalldirs /tools/info
if test -"" then \
        /
bin/sh ../support/mkinstalldirs  ; \
    
fi
/usr/bin/install --m 644 ./bash.1 /tools/man/man1/bash.1
/usr/bin/install --m 644 ./bashbug.1 /tools/man/man1/bashbug.1
/usr/bin/install --m 644 ./bash.info /tools/info/bash.info
if /bin/sh -'install-info --version' >/dev/null 2>&1then \
        
install-info --dir-file=/tools/info/dir /tools/info/bash.info; \
    else 
truefi
if test -"" then \
        /
usr/bin/install --m 644 ./bash.html  ; \
        /
usr/bin/install --m 644 ./bashref.html  ; \
    
fi
make
[1]: Leaving directory `/mnt/lfs/sources/bash-3.2/doc'
( cd ./builtins ; make  DESTDIR= install )
make[1]: Entering directory 
`/mnt/lfs/sources/bash-3.2/builtins'
make[1]: Nothing to be done for `install'
.
make[1]: Leaving directory `/mnt/lfs/sources/bash-3.2/builtins'
( cd ./po/ ; make  DESTDIR= install )
make[1]: Entering directory 
`/mnt/lfs/sources/bash-3.2/po'
/bin/sh /sources/bash-3.2/./support/mkinstalldirs /tools/share
installing en@quot.gmo as /tools/share/locale/en@quot/LC_MESSAGES/bash.mo
installing en@boldquot.gmo as /tools/share/locale/en@boldquot/LC_MESSAGES/bash.mo
if test "bash" = "gettext-tools"; then \
      /bin/sh /sources/bash-3.2/./support/mkinstalldirs /tools/share/gettext/po; \
      for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot   Makevars.template; do \
        /usr/bin/install -c -m 644 ./$file \
                /tools/share/gettext/po/$file; \
      done; \
      for file in Makevars; do \
        rm -f /tools/share/gettext/po/$file; \
      done; \
    else \
      : ; \
    fi
make[1]: Leaving directory `/mnt/lfs/sources/bash-3.2/po' 
What do you think?
 
Old 06-21-2009, 09:25 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
I think that works, but I wonder if the patch applied cleanly. That issue with the Russian language support was identified quite awhile ago by one of the LFS devs. He sent a patch to the Bash devs and it is included in the bash-3.2-fixes-8.patch patch.

I also think a sed would be easier than deleting references to ru.po and ru.gmo
Code:
sed -i 's:UTF-8:KOI8-R:g' po/ru.po
 
Old 06-21-2009, 10:07 AM   #3
arielsegal
Member
 
Registered: Jul 2007
Posts: 38

Original Poster
Rep: Reputation: 15
Thank you. I didn't know that the patch fixes this problem.

I'm at chapter 5, and this patch isn't suggested. Later on in chapter 6, the book tells you to apply the patch,
but does not say what bug it fixes.

I think the book should be changed so as to apply the patch in chapter 5 also.

But I don't think that I should bother to reinstall bash.
 
Old 06-21-2009, 11:50 AM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
You're welcome. Here's what the online version of the LFS book says.
Quote:
Originally Posted by LFS Book v6.4, section 5.15
5.15.1. Installation of Bash

Apply fixes for several bugs discovered since the initial release of Bash-3.2:

patch -Np1 -i ../bash-3.2-fixes-8.patch
Looks like the patch is applied in chapter 5. I agree you don't need to reinstall Bash in chapter 5.
 
Old 06-21-2009, 12:18 PM   #5
arielsegal
Member
 
Registered: Jul 2007
Posts: 38

Original Poster
Rep: Reputation: 15
You are right, I missed this one. This is what happens when I work late at night, how silly of me.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Acer Aspire One Restore Problem - solution found Completely Clueless Linux - Laptop and Netbook 2 05-14-2009 06:50 PM
Sound problem, found a solution but don't know how to set it up swalker23 Linux - Newbie 2 09-03-2008 04:29 PM
No CDRom device Found solution omayr Linux - General 2 03-21-2007 07:07 AM
Potential problem installing Dovecot v1.0-rc17 on FC6 and solution dino750 Linux - Server 0 01-29-2007 09:09 PM
Mouse troubles - found the cause, what's the solution? King V Linux - General 9 03-07-2003 06:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration