InstallTutorial icon indicating copy to clipboard operation
InstallTutorial copied to clipboard

在超算上安装 Mathematica

Open joebradly opened this issue 8 years ago • 7 comments
trafficstars

你好!我在超算上自己的用户下安装了mathematica, 进行了激活。在登录节点上mathematica是可以 运行的。如下: [xxxxx@ln1%xxxx-C ~]$ math -run < test_mathematica.m Mathematica 11.1.1 Kernel for Linux x86 (64-bit) Copyright 1988-2017 Wolfram Research, Inc.

In[1]:= Out[1]= 5050

In[2]:= 149 Out[2]= --- 6

In[3]:= 30449 Out[3]= ----- 6** 然后我将上面的运算通过脚本提交之后,出来了如下的输出 **Mathematica 11.1.1 Kernel for Linux x86 (64-bit) Copyright 1988-2017 Wolfram Research, Inc.

Mathematica cannot find a valid password.

For automatic Web Activation enter your activation key (enter return to skip Web Activation): You will need to get a password from your license certificate or from Wolfram Research (http://register.wolfram.com). Machine name: cn5755 MathID: 6520-23869-64467

You will need a valid activation key and password in order to proceed. Go to http://user.wolfram.com to register your activation key and obtain the password.

Enter your Activation key [format xxxx-xxxx-xxxxxx]: Enter your password: The password you entered is not valid. Please press Enter to quit.** 请问这个是什么原因呢?谢谢!

joebradly avatar Aug 15 '17 09:08 joebradly

It seems that you need to activate, separately, MMA on each node where you want to run it.

AlexanderZ11234 avatar Aug 15 '17 12:08 AlexanderZ11234

@AlexanderZ11234 超算上工作区的结点是随机分配的。在每一个节点激活一次不太实际。

joebradly avatar Aug 15 '17 13:08 joebradly

@joebradly 你可以写一个脚本运行wine,每次运行mathematica如果提示没注册,就wine运行注册机器再注册.不会特别麻烦,你也没得选择.

specter119 avatar May 21 '18 03:05 specter119

@specter119 不需要wine,有cc或者nodejs就可以 js源码:https://pastebin.com/raw/e4iTqbad ~~c源码:https://www.52pojie.cn/thread-729012-1-1.html~~ ~~抱歉,帖子涉嫌存在捆绑木马病毒、广告或其他违规行为,现已删除。~~

myfreeer avatar Jun 28 '18 05:06 myfreeer

@myfreeer 请问在超算上具体怎么用这两个代码呢? 我最近遇到了同样的问题,但是我是一个连nodejs是什么都不知道的小白…… 如果您能说一下具体怎么操作就太感谢了!

qenb avatar Sep 13 '18 09:09 qenb

@qenb

#!/bin/bash
gcc keygen.c -okeygen
OUTPUT="$(echo | ./math | tr '\n' '$')"
MATHID="$(echo "$OUTPUT" | tr '$' '\n' | grep MathID | cut -f2 -d':')"
echo -n 'MathID='
echo $MATHID
MName="$(echo "$OUTPUT" | tr '$' '\n' | grep -i 'Machine' | cut -f2 -d':')"
echo -n  'Machine Name='
echo $MName
KEY='1234-4321-123456'
echo "Key=$KEY"
PASS=$(echo $MATHID | ./keygen)
echo  "Password=$PASS"
STRING="${MName}\t${MATHID}\t${KEY}\t${PASS}\t\t\t"
echo -e $STRING >> ./Configuration/Licensing/mathpass
echo Done.

myfreeer avatar Sep 24 '18 03:09 myfreeer

@myfreeer “-okeygen” 是不是需要改成 “-o keygen”?

gxchan3 avatar Aug 21 '19 12:08 gxchan3