求助calibre 2011 license 的问题
我的license和bashrc是这样写的
license:
SERVER localhost 50e5492d526d 1818
DAEMON mgcld /home/eda/mentor/x86_cal_2011.2_34.26/lib/mgcld
bashrc:
alias lmlim1='/home/eda/mentor/x86_cal_2011.2_34.26/bin/lmgrd -c /home/eda/mentor/lic/license.dat'
alias lmlim2='/home/eda/mentor/x86_cal_2011.2_34.26/bin/lmstat -c /home/eda/mentor/lic/license.dat'
export MGC_HOME=/home/eda/mentor
export CALIBRE_HOME=$MGC_HOME/x86_cal_2011.2_34.26
export MGLS_LICENSE_FILE=$MGC_HOME/lic/license.datMGLS_LICENSE_FILE
export PATH=$CALIBRE_HOME/binPATH
输入lmlim1后
localuser@localuser-bit:~$ lmlim1
17:45:05 (lmgrd) -----------------------------------------------
17:45:05 (lmgrd)Please Note:
17:45:05 (lmgrd)
17:45:05 (lmgrd)This log is intended for debug purposes only.
17:45:05 (lmgrd)In order to capture accurate license
17:45:05 (lmgrd)usage data into an organized repository,
17:45:05 (lmgrd)please enable report logging. Use Acresso Software Inc.'s
17:45:05 (lmgrd)software license administrationsolution,
17:45:05 (lmgrd)FLEXnet Manager, toreadily gAIn visibility
17:45:05 (lmgrd)into license usage data and to create
17:45:05 (lmgrd)insightful reports on critical information like
17:45:05 (lmgrd)license availability and usage. FLEXnet Manager
17:45:05 (lmgrd)can be fully automated to run these reports on
17:45:05 (lmgrd)schedule and can be used to track license
17:45:05 (lmgrd)servers and usage across a heterogeneous
17:45:05 (lmgrd)network of servers including Windows NT, Linux
localuser@localuser-bit:~$ 17:45:05 (lmgrd)and UNIX. Contact Acresso Software Inc. at
17:45:05 (lmgrd)www.acresso.com for more details on how to
17:45:05 (lmgrd)obtain an evaluation copy of FLEXnet Manager
17:45:05 (lmgrd)for your enterprise.
17:45:05 (lmgrd)
17:45:05 (lmgrd) -----------------------------------------------
17:45:05 (lmgrd)
17:45:05 (lmgrd)
17:45:05 (lmgrd) Can't make directory /usr/tmp/.flexlm, errno: 2(No such file or directory)
17:45:05 (lmgrd) Can't make directory /usr/tmp/.flexlm, errno: 2(No such file or directory)
17:45:05 (lmgrd) Can't open /usr/tmp/.flexlm/lmgrdl.27525, errno: 2
17:45:20 (lmgrd) The TCP port number in the license, 1818, is already in use.
17:45:20 (lmgrd) Possible causes:
17:45:20 (lmgrd)1) The license server manager (lmgrd) is already running for this license.
17:45:20 (lmgrd)2) The OS has not "cleared" this port since lmgrd died.
17:45:20 (lmgrd)3) Another process is using this port number (unlikely).
17:45:20 (lmgrd) Solutions:
17:45:20 (lmgrd)1) Make sure lmgrd and all vendor daemons for this
17:45:20 (lmgrd)license are not running.
17:45:20 (lmgrd)2) You may have to wait for the OS to clear this port.
17:45:20 (lmgrd) Retrying for about 5 more minutes
17:45:38 (lmgrd) Still trying...
17:45:56 (lmgrd) Still trying...
17:46:14 (lmgrd) Still trying...
17:46:32 (lmgrd) Still trying...
17:46:50 (lmgrd) Still trying...
17:47:08 (lmgrd) Still trying...
17:47:26 (lmgrd) Still trying...
17:47:44 (lmgrd) Still trying...
17:48:02 (lmgrd) Still trying...
17:48:20 (lmgrd) Still trying...
17:48:38 (lmgrd) Still trying...
17:48:53 (lmgrd) Failed to open the TCP port number in the license.
17:48:53 (lmgrd) Can't remove statfile /usr/tmp/.flexlm/lmgrdl.27525: errno No such file or directory
请各位高手指点,万分感谢。
SERVER localhost 50e5492d526d 1818
1818換成其他port試試
例如27000
还是不行啊,看了其他帖子,又说是patch的问题,我的patch是这样写的
localuser@localuser-bit:/home/eda/mentor/x86_cal_2011.2_34.26$ ./patch_calibre2011_linux
[total hits/matching patterns/non-matching patterns]
error: failed to read+write: sfk - skipping
99error: failed to read+write: lib/mgcld - skipping
35% pkgs/icv_common.x86/tcl/mbh/MBHPDLerror: failed to read+write: pkgs/mgls/lib/mgcld - skipping
65% error: failed to read+write: pkgs/mgls/bin/lmgrd - skipping
36% pkgs/mgls/bin/lmrerror: failed to read+write: pkgs/mgls/bin/mgcld - skipping
63% ...kgs/icv_hier_widgerror: failed to read+write: bin/lmgrd - skippinges
error: failed to read+write: bin/mgcld - skipping
6567 files checked, 0 changed.
7 errors occurred.
localuser@localuser-bit:/home/eda/mentor/x86_cal_2011.2_34.26$
7 errors 不知道有没有影响?
=='
你的log file寫得很清楚,就是port的問題。
所以不是你有其他license daemon佔住了port
就是你重新啟動lmgrd的時候,沒有先把前一個lmgrd停下來。
(lmdown -c port@hostname)
記得,停了daemon之後,要等一會兒在重新用lmgrd。 當然也有快速的方法,不過這邊就不提了。
用root权限创建“/usr/tmp/.flexlm”文件,并赋予最高权限“777”。重启Ubuntu系统,然后再重新启动lmgrd即可。
sudo mkdir /usr/tmp
sudo chmod 777 /usr/tmp