Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SMLNJ: .arch-n-opsys not found
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
slareman
n00b
n00b


Joined: 24 Jan 2004
Posts: 2

PostPosted: Sat Jan 24, 2004 4:13 am    Post subject: SMLNJ: .arch-n-opsys not found Reply with quote

SMLNJ compiles and installs perfectly on my system (gcc 3.2.3) but if I try to run it with "sml", I get:

/usr/bin/sml: line 1: /usr/bin/.arch-n-opsys: No such file or directory
sml: unable to determine architecture/operating system

Can anyone tell me how I can make or get this file? Thanks!
Back to top
View user's profile Send private message
agren
n00b
n00b


Joined: 19 Dec 2003
Posts: 29
Location: Sweden

PostPosted: Mon Feb 02, 2004 5:43 pm    Post subject: Re: SMLNJ: .arch-n-opsys not found Reply with quote

slareman wrote:
/usr/bin/sml: line 1: /usr/bin/.arch-n-opsys: No such file or directory
sml: unable to determine architecture/operating system


I have exactly the same problem on two different x86 machines! I use mosml instead but it would be nice to have smlnj as well.
Back to top
View user's profile Send private message
holmis
n00b
n00b


Joined: 16 Mar 2003
Posts: 72
Location: Sweden

PostPosted: Fri Feb 13, 2004 7:13 pm    Post subject: Reply with quote

The same problem here.

As the error message implies, it tries to run /usr/bin/.arch-n-opsys which is not located in /usr/bin but in /usr/share/smlnj/bin/ (at least mine).

A potential workaround would be to create a symlink in /usr/bin. I tried that just to get another error:

Code:

$ sml
sml: cannot find runtime system /usr/bin/.run/run.x86-linux


Alright, this calls for a number of symlinks. This is how I got the bastard up running:

Code:

ln -s /usr/share/smlnj/bin/.arch-n-opsys /usr/bin
ln -s /usr/share/smlnj/bin/.run /usr/bin/
ln -s /usr/share/smlnj/bin/.heap /usr/bin


Beware that this is only an ugly workaround -- not a solution, so I don't know how well it works (only that I have been able to start sml and evaluate 45 + 5; :wink: ). Not easy to tell since I haven't RTFM since I cannot find TFM!
Back to top
View user's profile Send private message
johnicholas
n00b
n00b


Joined: 05 Jul 2004
Posts: 1

PostPosted: Mon Jul 05, 2004 6:42 pm    Post subject: almost the same error Reply with quote

I am getting almost the same error as mentioned above, and as mentioned in:

https://bugs.gentoo.org/show_bug.cgi?id=48509

However, I get the error when tryng to emerge smlnj (10.0.7), rather than when trying to run it.

su
emerge smlnj
[snip]
../../bin/sml: line 1: /bin/.arch-n-opsys: No such file or directory
sml: unable to determine architecture/operating system
!!! build of sml-cm.x86-linux failed

Thanks,
Johnicholas
Back to top
View user's profile Send private message
ZuP5
n00b
n00b


Joined: 22 Nov 2005
Posts: 2

PostPosted: Tue Nov 22, 2005 8:31 pm    Post subject: Re: SMLNJ: .arch-n-opsys not found Reply with quote

slareman wrote:

/usr/bin/sml: line 1: /usr/bin/.arch-n-opsys: No such file or directory
sml: unable to determine architecture/operating system


Also had the same problem.

Rather than using symlinks, first try updating your environment:
Code:
source /etc/profile


I found that the environment variable SMLNJ_HOME was not set after the ebuild completed.
Back to top
View user's profile Send private message
crazeekennee
n00b
n00b


Joined: 23 May 2005
Posts: 20
Location: Rhode Island, USA

PostPosted: Fri Feb 10, 2006 7:26 pm    Post subject: Reply with quote

I had the same issue, and running
Code:
source /etc/profile
works perfecly.

Thanks !!!
_________________
You might know more than me today, but I'm learning faster than you !!! Watch your heels !!!
Back to top
View user's profile Send private message
angerhang
n00b
n00b


Joined: 19 Oct 2014
Posts: 1

PostPosted: Sun Oct 19, 2014 10:40 am    Post subject: Success! Reply with quote

Yeah after installed OS X, the issue occurred to me but

Code:
source /etc/profile


Save my day~ :D

Thank you!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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