Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo for Mac OS X (Portage for Mac OS X)
  • Search

@BASH@: bad interpreter

Running Portage on Mac OS X and need help with a problem? Post here.
Locked
Advanced search
3 posts • Page 1 of 1
Author
Message
jsn.x
n00b
n00b
Posts: 18
Joined: Wed Aug 09, 2006 1:18 am
Location: san francisco bay, usa

@BASH@: bad interpreter

  • Quote

Post by jsn.x » Sat Mar 08, 2008 12:48 am

I'm following the install tutorial for OS X, and I've gotten to the point where we install portage the second time. The failure is a little strange:

Code: Select all

 :; env FEATURES="-collision-protect" emerge --oneshot portage
  <...snip.../>
/opt/gentoo/var/tmp/portage/sys-apps/portage-2.2.00.9271/temp/environment: ./bin/emake: @BASH@: bad interpreter: No such file or directory
 * ERROR: sys-apps/portage-2.2.00.9271 failed:
 *   emake failed
 * 
 * Call stack:
 *               ebuild.sh:  46: <call src_compile>
 *             environment:2444:     emake || die "emake failed";
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * build log: '/opt/gentoo/var/tmp/portage/sys-apps/portage-2.2.00.9271/temp/build.log'
 * ebuild environment: '/opt/gentoo/var/tmp/portage/sys-apps/portage-2.2.00.9271/temp/environment'
 * S: '/opt/gentoo/var/tmp/portage/sys-apps/portage-2.2.00.9271/work/prefix-portage-2.2.00.9271'
This looks like a case where configure has failed to replace @BASH@ with a path to bash. All the scripts in the work dir (/opt/gentoo/var/tmp/portage/sys-apps/portage-2.2.00.9271/work/prefix-portage-2.2.00.9271/bin) have #!@BASH@ at the top of them.
--
_jsn
Top
jsn.x
n00b
n00b
Posts: 18
Joined: Wed Aug 09, 2006 1:18 am
Location: san francisco bay, usa

Re: @BASH@: bad interpreter

  • Quote

Post by jsn.x » Mon Mar 10, 2008 1:52 am

I made it work! Yes! Now I can have Gentoo on my Mac! Yeah!

The magic words:

Code: Select all

for f in $EPREFIX/usr/lib/portage/bin/*
do
    ln -s $f $EPREFIX/usr/bin/
done
The "#!@BASH@: bad interpreter" error is a result of putting ./bin at the end of my path. When bash can't find emake higher up -- in $EPREFIX/usr/bin, for example -- it goes ahead and calls ./bin/emake in the install directory, which of course hasn't had a shell substituted into it yet.

If I remove ./bin from my path, I just get "emake: command not found", so evidently something is not right with the way portage is bootstrapped into place. Is it a bug that the symlinks I mention above are not created automatically?
--
_jsn
Top
grobian
Developer
Developer
Posts: 67
Joined: Wed May 31, 2006 4:02 pm

  • Quote

Post by grobian » Thu Mar 27, 2008 9:01 am

did you perhaps forget to set your path as instructed at the top of the bootstrap guide?
Gentoo on a different level
Top
Locked

3 posts • Page 1 of 1

Return to “Gentoo for Mac OS X (Portage for Mac OS X)”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy