Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Portage on Solaris (Nexenta amd64 opteron) ARCH is not set
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
ecstasylove
n00b
n00b


Joined: 05 Aug 2007
Posts: 8
Location: ditchling, e. sussex, uk

PostPosted: Sun Aug 05, 2007 5:59 pm    Post subject: Portage on Solaris (Nexenta amd64 opteron) ARCH is not set Reply with quote

Hi,

I want to install portage on Nexenta Alpha 7 (2x amd64 opteron 275) but I get as far (in http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-solaris.xml guide) as entering:
emerge --oneshot "=sys-apps/sed-4.1.4*"

and get:

root@server:/export/home/ecstasy# emerge --oneshot "=sys-apps/sed-4.1.4*"


!!! /root/gentoo/etc/make.profile is not a symlink and will probably prevent most merges.
!!! It should point into a profile within /root/gentoo/usr/portage/profiles/
!!! (You can safely ignore this message when syncing. It's harmless.)


!!! ARCH is not set... Are you missing the '/etc/make.profile' symlink?
!!! Is the symlink correct? Is your portage tree complete?

I don't have a /root/gentoo/etc/make.profile

Do I need a snapshot? Where do I get one?

can anyone help?

e


Last edited by ecstasylove on Sun Aug 05, 2007 7:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Sun Aug 05, 2007 6:04 pm    Post subject: Reply with quote

Moved from Gentoo on AMD64 to Gentoo on Alternative Architectures.

[mod]This is not an AMD64 issues, but instead a Gentoo-ALT issue. Thus, I've moved this thread to GAA.[/mod]
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4983
Location: Gothenburg, Sweden

PostPosted: Sun Aug 05, 2007 7:38 pm    Post subject: Reply with quote

Don't know to what extent the prefix branch differ from mainline portage. Anyway, ${EPREFIX}/etc/make.profile must be a symlink to a valid profile directory, which in your case should probably be something under ${EPREFIX}/usr/portage/profiles/default-prefix/sunos/solaris/. As far as I can tell, the bootstrap-prefix script should download a snapshot automatically.

Also, I suspect having /root/gentoo as your ${EPREFIX} might not be the best idea if you want to run stuff installed via portage as a non-root user.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat
Back to top
View user's profile Send private message
ecstasylove
n00b
n00b


Joined: 05 Aug 2007
Posts: 8
Location: ditchling, e. sussex, uk

PostPosted: Mon Aug 06, 2007 5:14 pm    Post subject: Reply with quote

Thanks but I get the same error. I don't think a snapshot was downloaded.

root@server:/export/home/ecstasy# ln -s /root/gentoo/usr/portage/profiles/default-prefix/sunos/solaris/5.10/x86/make.defaults /root/gentoo/etc/make.profile
root@server:/export/home/ecstasy# emerge --oneshot "=sys-apps/sed-4.1.4*"
!!! ARCH is not set... Are you missing the '/etc/make.profile' symlink?
!!! Is the symlink correct? Is your portage tree complete?

My make.defaults contains:

ARCH="x86-solaris"
CHOST="i386-pc-solaris2.10"
ACCEPT_KEYWORDS="x86-solaris"

How would I bootstrap for a non root user? Do I have to delete /root/gentoo only?

e
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4983
Location: Gothenburg, Sweden

PostPosted: Tue Aug 07, 2007 7:57 pm    Post subject: Reply with quote

As I said, make.profile should point to a directory (e.g. /foo/../5.10/x86), not a file. As for bootstrapping for non-root users, ${EPREFIX} needs to be accessible for non-root users; /root/gentoo typically isn't.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat
Back to top
View user's profile Send private message
ecstasylove
n00b
n00b


Joined: 05 Aug 2007
Posts: 8
Location: ditchling, e. sussex, uk

PostPosted: Tue Aug 07, 2007 8:53 pm    Post subject: Reply with quote

wow thanks it worked.

I now get

root@server:/export/home/ecstasy# emerge --oneshot "=sys-apps/sed-4.1.4*"
Calculating dependencies
!!! All ebuilds that could satisfy "=sys-apps/sed-4.1.4*" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-apps/sed-4.1.4-r1 (masked by: ~x86-solaris keyword)

For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.

Do you know where to look/what to do for this?

e
Back to top
View user's profile Send private message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Tue Aug 07, 2007 8:56 pm    Post subject: Reply with quote

Code:


For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.


"man emerge" or go here:
http://www.gentoo.org/doc/en/handbook/index.xml
Back to top
View user's profile Send private message
ecstasylove
n00b
n00b


Joined: 05 Aug 2007
Posts: 8
Location: ditchling, e. sussex, uk

PostPosted: Tue Aug 07, 2007 9:17 pm    Post subject: Reply with quote

Thanks. I've created a package.keywords in /root/gentoo/etc/ with =sys-apps/sed-4.1.4-r1 ~x86-solaris in but still get error,

e
Back to top
View user's profile Send private message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Tue Aug 07, 2007 9:20 pm    Post subject: Reply with quote

should be $ROOT/etc/portage/package.keywords, not $ROOT/etc/package.keywords.

(Maybe you have it right, but I can't tell from what you wrote. Worth checking.)

edit: typo
Back to top
View user's profile Send private message
ecstasylove
n00b
n00b


Joined: 05 Aug 2007
Posts: 8
Location: ditchling, e. sussex, uk

PostPosted: Tue Aug 07, 2007 9:31 pm    Post subject: Reply with quote

YES. It worked, thanks
Back to top
View user's profile Send private message
ecstasylove
n00b
n00b


Joined: 05 Aug 2007
Posts: 8
Location: ditchling, e. sussex, uk

PostPosted: Tue Aug 07, 2007 10:41 pm    Post subject: Reply with quote

getting this error emerging sys-devel/gcc:

configure: error: can not run /root/gentoo/var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/config.sub
*
* ERROR: sys-devel/gcc-4.2.0 failed.
* Call stack:
* ebuild.sh, line 1595: Called dyn_compile
* ebuild.sh, line 929: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* gcc-4.2.0.ebuild, line 94: Called gcc_src_compile
* toolchain.eclass, line 1549: Called gcc_do_configure
* toolchain.eclass, line 1347: Called die
*
* failed to run configure
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/root/gentoo/var/tmp/portage/sys-devel/gcc-4.2.0/temp/build.log'.
*

* Messages for package sys-devel/gcc-4.2.0:

* Can't read /config.sub, skipping..
* Can't read /config.guess, skipping..
*
* ERROR: sys-devel/gcc-4.2.0 failed.
* Call stack:
* ebuild.sh, line 1595: Called dyn_compile
* ebuild.sh, line 929: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* gcc-4.2.0.ebuild, line 94: Called gcc_src_compile
* toolchain.eclass, line 1549: Called gcc_do_configure
* toolchain.eclass, line 1347: Called die
*
* failed to run configure
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/root/gentoo/var/tmp/portage/sys-devel/gcc-4.2.0/temp/build.log'.

there was something earlier about updating cfg files:

* Please be sure to update all pending '._cfg*' files in /etc,
* else things might break! You can use 'etc-update'
* to accomplish this:
*
* # etc-update
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Wed Aug 08, 2007 2:55 am    Post subject: Reply with quote

Please upload the /root/gentoo/var/tmp/portage/sys-devel/gcc-4.2.0/temp/build.log file somewhere on the Internet and put a link here. If you can't do that, please attach the relevant sections here.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
ecstasylove
n00b
n00b


Joined: 05 Aug 2007
Posts: 8
Location: ditchling, e. sussex, uk

PostPosted: Sat Aug 11, 2007 2:37 pm    Post subject: Reply with quote

I've done a clean nexenta install.

Where's the best place to install the prexfix for a non root user?

update
I installed into my home dir but had used a root shell and locked the files. I fixed it with
Code:
chown -R ecstasy:staff gentoo

and put sudo back on bin's group (not sure about that)


I've got as far as
Code:
emerge --oneshot bash
and it fails. can you have a look? I've uploaded the build.log here https://ecstasylove.org/dl/errors/build.log
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures 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