Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bootstrap-prefix.sh $EPREFIX/tmp stage1 fails on wget
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
gliverman
n00b
n00b


Joined: 24 Dec 2006
Posts: 51
Location: Carrollton, GA

PostPosted: Thu Sep 13, 2012 3:01 pm    Post subject: bootstrap-prefix.sh $EPREFIX/tmp stage1 fails on wget Reply with quote

Can anyone help with this? It seems to me that the bootstrap-prefix script is trying to get a .tar file instead of on of the ones that are available (.tar.gz, etc.). I am trying this on Solaris 9.

Code:
frodo $ ./bootstrap-prefix.sh $EPREFIX/tmp stage1
./bootstrap-prefix.sh: type: illegal option: -P
type: usage: type [-apt] name [name ...]
* Bootstrapping Gentoo prefixed portage installation using
* host:   sparc-sun-solaris2.9
* prefix: /home/gliverma/gentoo/tmp
* ready to bootstrap stage1
./bootstrap-prefix.sh: type: illegal option: -P
type: usage: type [-apt] name [name ...]
* Bootstrapping wget
./bootstrap-prefix.sh: type: illegal option: -P
type: usage: type [-apt] name [name ...]
./bootstrap-prefix.sh: type: illegal option: -P
type: usage: type [-apt] name [name ...]
./bootstrap-prefix.sh: type: illegal option: -P
type: usage: type [-apt] name [name ...]
* Fetching wget-1.13.4.tar
--10:52:54--  http://distfiles.gentoo.org/distfiles/wget-1.13.4.tar
           => `wget-1.13.4.tar'
Resolving distfiles.gentoo.org... 64.50.236.52, 137.226.34.42, 140.211.166.134, ...
Connecting to distfiles.gentoo.org|64.50.236.52|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
10:52:54 ERROR 404: Not Found.

!!! downloading http://distfiles.gentoo.org/distfiles/wget-1.13.4.tar failed!
* download failed, retrying at GNU mirror
* Fetching wget-1.13.4.tar
--10:52:54--  http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar
           => `wget-1.13.4.tar'
Resolving ftp.gnu.org... 208.118.235.20
Connecting to ftp.gnu.org|208.118.235.20|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
10:52:54 ERROR 404: Not Found.

!!! downloading http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar failed!
./bootstrap-prefix.sh: cd: /wget-1.13.4: No such file or directory


I am doing the manual bootstrap since my gcc is in /usr/local/bin/gcc instead of /usr/sfw/blabla/bin
Code:
frodo $ ./bootstrap-prefix.sh
./bootstrap-prefix.sh: type: illegal option: -P
type: usage: type [-apt] name [name ...]


                                             .
       .vir.                                d$b
    .d$$$$$$b.    .cd$$b.     .d$$b.   d$$$$$$$$$$$b  .d$$b.      .d$$b.
    $$$$( )$$$b d$$$()$$$.   d$$$$$$$b Q$$$$$$$P$$$P.$$$$$$$b.  .$$$$$$$b.
    Q$$$$$$$$$$B$$$$$$$$P"  d$$$PQ$$$$b.   $$$$.   .$$$P' `$$$ .$$$P' `$$$
      "$$$$$$$P Q$$$$$$$b  d$$$P   Q$$$$b  $$$$b   $$$$b..d$$$ $$$$b..d$$$
     d$$$$$$P"   "$$$$$$$$ Q$$$     Q$$$$  $$$$$   `Q$$$$$$$P  `Q$$$$$$$P
    $$$$$$$P       `"""""   ""        ""   Q$$$P     "Q$$$P"     "Q$$$P"
    `Q$$P"                                  """

             Welcome to the Gentoo Prefix interactive installer!


    I will attempt to install Gentoo Prefix on your system.  To do so, I'll
    ask  you some questions first.    After that,  you'll have to  practise
    patience as your computer and I try to figure out a way to get a lot of
    software  packages  compiled.    If everything  goes according to plan,
    you'll end up with what we call  "a Prefix install",  but by that time,
    I'll tell you more.


Do you want me to start off now? [Yn]

It seems to me you are 'gliverma' (70132), that looks cool to me.

I'm going to check for some variables in your environment now:
  it appears CPPFLAGS is not set :)
  it appears CFLAGS is not set :)
  it appears CXXFLAGS is not set :)
  it appears LDFLAGS is not set :)
  it appears ASFLAGS is not set :)
  it appears LD_LIBRARY_PATH is not set :)
  it appears DYLD_LIBRARY_PATH is not set :)
  it appears PKG_CONFIG_PATH is not set :)

I'm excited!  Seems we can finally do something productive now.

Ok, I'm going to do a little bit of guesswork here.  Thing is, your
machine appears to be identified by CHOST=sparc-sun-solaris2.9.

To me, it seems to be a big-endian machine.  I told you before you need
patience, but with your machine, regardless how many CPUs you have, you
need some more.  Context switches are just expensive, and guess what
fork/execs result in all the time.  I'm going to make it even worse for
you, configure and make typically are fork/exec bombs.
I'm going to assume you're actually used to having patience with this
machine, which is good, because I really love a box like yours!

Ok, this is Solaris, or a derivative like OpenSolaris or OpenIndiana.
Sometimes, useful tools necessary at this stage are hidden.  I'm going
to check if that's the case for your system too, and if so, add those
locations to your PATH.
./bootstrap-prefix.sh: type: illegal option: -P
type: usage: type [-apt] name [name ...]

Yikes!  Your Solaris box doesn't come with gcc in /usr/sfw/blabla/bin?
What good is it to me then?  I can't find a compiler!  I'm afraid
you'll have to find a way to install the Sun FreeWare tools somehow, is
it on the Companion disc perhaps?
See me again when you figured it out.


frodo $ which gcc
/usr/local/bin/gcc
Back to top
View user's profile Send private message
NotQuiteSane
Guru
Guru


Joined: 30 Jan 2005
Posts: 488
Location: Klamath Falls, Jefferson, USA, North America, Midgarth

PostPosted: Sun Sep 16, 2012 9:55 am    Post subject: Re: bootstrap-prefix.sh $EPREFIX/tmp stage1 fails on wget Reply with quote

[quote="gliverman"
Code:
Yikes!  Your Solaris box doesn't come with gcc in /usr/sfw/blabla/bin?

frodo $ which gcc
/usr/local/bin/gcc
[/quote]

seems to me gcc needs to be in /usr/sfw/.../bin. symlink perhaps?


NQS
_________________
These opinions are mine, mine I say! Piss off and get your own.

As I see it -- An irregular blog, Improved with new location

To delete French language packs from system use 'sudo rm -fr /'
Back to top
View user's profile Send private message
wthrowe
Tux's lil' helper
Tux's lil' helper


Joined: 19 Aug 2009
Posts: 141

PostPosted: Sun Sep 16, 2012 11:27 pm    Post subject: Reply with quote

I'm guessing your bash is either not really bash or is really old. You're getting errors from type -P, which was added something like 10 years ago (version 2.05b or thereabouts). This is probably also the cause of the wget problems, since behaviour like that would be expected if bash "[[" style tests didn't work.
Back to top
View user's profile Send private message
gliverman
n00b
n00b


Joined: 24 Dec 2006
Posts: 51
Location: Carrollton, GA

PostPosted: Thu Oct 18, 2012 11:39 am    Post subject: Reply with quote

wthrowe wrote:
I'm guessing your bash is either not really bash or is really old. You're getting errors from type -P, which was added something like 10 years ago (version 2.05b or thereabouts). This is probably also the cause of the wget problems, since behaviour like that would be expected if bash "[[" style tests didn't work.


Sorry for the long delay in responding! Here is what I get when I investigate your idea:
Code:
$ /bin/bash --version
GNU bash, version 2.05.0(1)-release (sparc-sun-solaris2.9)
Copyright 2000 Free Software Foundation, Inc.
Back to top
View user's profile Send private message
gliverman
n00b
n00b


Joined: 24 Dec 2006
Posts: 51
Location: Carrollton, GA

PostPosted: Thu Oct 18, 2012 12:15 pm    Post subject: Reply with quote

wthrowe wrote:
I'm guessing your bash is either not really bash or is really old. You're getting errors from type -P, which was added something like 10 years ago (version 2.05b or thereabouts). This is probably also the cause of the wget problems, since behaviour like that would be expected if bash "[[" style tests didn't work.


I took your idea and ran with it a bit more and I think the problem with -P is that the command "type" does not understand -P. I am looking into that. I am basing this off of reading a man page for it online that includes this line, which is not in the man page of the box I am working on:
Quote:
-P or --force-path either return the name of the disk file that would be executed if name were specified as a command name, or nothing no file with the specified name could be found in the PATH


When I run type on a Solaris 10 box we have I get this:
Code:
$ type -x
-bash: type: -x: invalid option
type: usage: type [-afptP] name [name ...]

Yet when I run the same command on the box in question I get
Code:
$ type -x
bash: type: illegal option: -x
type: usage: type [-apt] name [name ...]

The first one shows -P as a valid options whereas the problem child does not.
Back to top
View user's profile Send private message
wthrowe
Tux's lil' helper
Tux's lil' helper


Joined: 19 Aug 2009
Posts: 141

PostPosted: Thu Oct 18, 2012 3:13 pm    Post subject: Reply with quote

Most stuff in Gentoo assumes at least bash 3, and sometimes bash 4, so you'll need to get a newer bash to continue. Poking around the prefix docs I found this script, to be invoked as ./bootstrap-bash.sh $EPREFIX/tmp. The script is designed to deal with a missing bash but should deal with an old one equally well.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum