Hi,
I tried to compile a simple hello world C program but the compiler looked
for the old host name. How to overcome this problem?
/usr/ucb/cc -o try try.c
ucbcc: Warning:
Option -YP,:/usr/ucblib:/opt/SUNWspro/WS6U2/bin/../lib:/opt/SUNWspro/WS6U2/bin:/usr/ccs/lib:/usr/lib
passed to ld, if ld is invoked, ignored otherwise
License Error : Cannot find the license server (libalephprd)
in the network database for product(Sun WorkShop Compiler C SPARC)
Cannot find SERVER hostname in network database
The lookup for the hostname on the SERVER line in the
license file failed. This often happens when NIS or DNS
or the hosts file is incorrect. Workaround: Use IP-Address
(e.g., 123.456.789.123) instead of hostname
Feature:workshop.c.sparc
Hostname:skywalker ------------------------------------------------------------------------------------>This
is the old host name (current hostname is libalephprd)
FLEXlm error:-14,7. System Error: 146 Connection refused
Thanks in advance for any advice.
|
|
0
|
|
|
|
Reply
|
NewBie
|
1/6/2006 7:29:59 AM |
|
NewBie wrote:
> Hi,
>
> I tried to compile a simple hello world C program but the compiler looked
> for the old host name. How to overcome this problem?
>
> /usr/ucb/cc -o try try.c
> ucbcc: Warning:
> Option -YP,:/usr/ucblib:/opt/SUNWspro/WS6U2/bin/../lib:/opt/SUNWspro/WS6U2/bin:/usr/ccs/lib:/usr/lib
> passed to ld, if ld is invoked, ignored otherwise
>
>
>
> License Error : Cannot find the license server (libalephprd)
>
> in the network database for product(Sun WorkShop Compiler C SPARC)
>
> Cannot find SERVER hostname in network database
>
> The lookup for the hostname on the SERVER line in the
>
> license file failed. This often happens when NIS or DNS
>
> or the hosts file is incorrect. Workaround: Use IP-Address
>
> (e.g., 123.456.789.123) instead of hostname
>
> Feature:workshop.c.sparc
>
> Hostname:skywalker ------------------------------------------------------------------------------------>This
> is the old host name (current hostname is libalephprd)
>
> FLEXlm error:-14,7. System Error: 146 Connection refused
>
>
>
> Thanks in advance for any advice.
My impression here is that the stuff you ar using is just plain old.
( version 6.2 of the compiler is 5 years old )
Sun Studio 11 does not need a license server .
You should not use /usr/ucb/cc that is just a script that calls
/opt/SUNWspro/bin/cc with some BSD dependant options.
Got to http://www.sun.com/software/products/studio/index.xml
Download and install the latest C compiler
put /opt/SUNWspro/bin in your PATH before /usr/ucb or delete
/usr/ucb from you PATH completely.
Then try to compile Your ALEPH system
//Lars
|
|
0
|
|
|
|
Reply
|
tunla
|
1/6/2006 9:38:49 AM
|
|
NewBie wrote:
> Hi,
>
> I tried to compile a simple hello world C program but the compiler looked
> for the old host name. How to overcome this problem?
>
> /usr/ucb/cc -o try try.c
> ucbcc: Warning:
> Option -YP,:/usr/ucblib:/opt/SUNWspro/WS6U2/bin/../lib:/opt/SUNWspro/WS6U2/bin:/usr/ccs/lib:/usr/lib
> passed to ld, if ld is invoked, ignored otherwise
>
>
>
> License Error : Cannot find the license server (libalephprd)
I'm sure it can be solved (update license file, get another code etc)
but why bother? Why not download Sun's Studio 11, which is the latest
version of the compiler, but now completely free?
--
Dave K
http://www.southminster-branch-line.org.uk/
Please note my email address changes periodically to avoid spam.
It is always of the form: month-year@domain. Hitting reply will work
for a couple of months only. Later set it manually. The month is
always written in 3 letters (e.g. Jan, not January etc)
|
|
0
|
|
|
|
Reply
|
Dave
|
1/6/2006 9:51:07 AM
|
|
On 6/1/06 9:51, in article 43be3d89@212.67.96.135, "Dave"
<INVALID-see-signature-for-how-to-determine@southminster-branch-line.org.uk>
wrote:
> NewBie wrote:
>> Hi,
>>
>> I tried to compile a simple hello world C program but the compiler looked
>> for the old host name. How to overcome this problem?
>>
>> /usr/ucb/cc -o try try.c
>> ucbcc: Warning:
>> Option
>> -YP,:/usr/ucblib:/opt/SUNWspro/WS6U2/bin/../lib:/opt/SUNWspro/WS6U2/bin:/usr/
>> ccs/lib:/usr/lib
>> passed to ld, if ld is invoked, ignored otherwise
>>
>>
>>
>> License Error : Cannot find the license server (libalephprd)
>
> I'm sure it can be solved (update license file, get another code etc)
> but why bother? Why not download Sun's Studio 11, which is the latest
> version of the compiler, but now completely free?
I'd also suggest that trying to run the cc in /usr/ucb is not a good idea in
itself.
Cheers,
Chris
|
|
0
|
|
|
|
Reply
|
Chris
|
1/6/2006 11:11:57 AM
|
|
Dave wrote:
> I'm sure it can be solved (update license file, get another code etc)
> but why bother? Why not download Sun's Studio 11, which is the latest
> version of the compiler, but now completely free?
>
My comment would not be valid unless you have a supported machine of
course. You will need an UltraSPARC processor and the minimum
recommeneded is a U60 with 512 MB and a 450 MHz CPU. But if you don't
use the GUI, you can get away with a lot less, but it must be an
UltraSPARC. I've found it quite acceptable using the GUI on a 360 MHz
Ultra 60.
--
Dave K
http://www.southminster-branch-line.org.uk/
Please note my email address changes periodically to avoid spam.
It is always of the form: month-year@domain. Hitting reply will work
for a couple of months only. Later set it manually. The month is
always written in 3 letters (e.g. Jan, not January etc)
|
|
0
|
|
|
|
Reply
|
Dave
|
1/6/2006 11:25:31 AM
|
|
"NewBie" <leongyc@tp.edu.sg> writes:
>I tried to compile a simple hello world C program but the compiler looked
>for the old host name. How to overcome this problem?
>License Error : Cannot find the license server (libalephprd)
> in the network database for product(Sun WorkShop Compiler C SPARC)
Edit the license file to reflect the proper server name.
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
|
|
0
|
|
|
|
Reply
|
Casper
|
1/6/2006 12:09:48 PM
|
|
Casper H.S. Dik wrote:
> "NewBie" <leongyc@tp.edu.sg> writes:
>
> >I tried to compile a simple hello world C program but the compiler looked
> >for the old host name. How to overcome this problem?
>
> >License Error : Cannot find the license server (libalephprd)
>
> > in the network database for product(Sun WorkShop Compiler C SPARC)
>
> Edit the license file to reflect the proper server name.
>
> Casper
I don't know where is the license file located. Could you give me a
pointer? Is the license file editable using vi?
|
|
0
|
|
|
|
Reply
|
NewBie
|
1/6/2006 1:23:23 PM
|
|
Hi Casper,
Where can I locate the license file? Is it editable using vi?
Any pointer is appreciated.
|
|
0
|
|
|
|
Reply
|
NewBie
|
1/7/2006 4:29:47 AM
|
|
"NewBie" <yc282004@yahoo.com.sg> writes:
>Casper H.S. Dik wrote:
>> "NewBie" <leongyc@tp.edu.sg> writes:
>>
>> >I tried to compile a simple hello world C program but the compiler looked
>> >for the old host name. How to overcome this problem?
>>
>> >License Error : Cannot find the license server (libalephprd)
>>
>> > in the network database for product(Sun WorkShop Compiler C SPARC)
>>
>> Edit the license file to reflect the proper server name.
>>
>> Casper
>I don't know where is the license file located. Could you give me a
>pointer? Is the license file editable using vi?
Depends; run "truss -f" and the C compiler and look for a file with
"license" in the name.
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
|
|
0
|
|
|
|
Reply
|
Casper
|
1/7/2006 9:38:28 AM
|
|
"NewBie" <yc282004@yahoo.com.sg> writes in comp.unix.solaris:
|I don't know where is the license file located. Could you give me a
|pointer?
cc -xlicinfo should tell you
--
Alan Coopersmith * alanc@alum.calberkeley.org * Alan.Coopersmith@Sun.COM
http://blogs.sun.com/alanc/ * http://people.freedesktop.org/~alanc/
http://del.icio.us/alanc/ * http://www.csua.berkeley.edu/~alanc/
Working for, but definitely not speaking for, Sun Microsystems, Inc.
|
|
0
|
|
|
|
Reply
|
Alan
|
1/7/2006 7:11:48 PM
|
|
On 6 Jan 2006 20:29:47 -0800, NewBie <yc282004@yahoo.com.sg> wrote:
> Hi Casper,
>
> Where can I locate the license file? Is it editable using vi?
Normally, the licence file is pointed to by the LM_LICENSE_FILE
environment variable.
It is editable with vi.
The licence file itself contains the name of the machine where the
licence server should be running, the licence daemons and the licence keys.
There are a set of tools that are part of the licence package that you
can use to diagnose licence problems (lmstat, lmdiag etc).
A bientot
Paul
--
Paul Floyd http://paulf.free.fr (for what it's worth)
Surgery: ennobled Gerald.
|
|
0
|
|
|
|
Reply
|
Paul
|
1/8/2006 9:20:13 PM
|
|
Hi,
Thanks everyone.
Problem solved by fixing the licence issue and re-run the daemon
"lmgrd.ste".
|
|
0
|
|
|
|
Reply
|
NewBie
|
1/9/2006 5:53:44 AM
|
|
|
11 Replies
421 Views
(page loaded in 0.146 seconds)
Similiar Articles: Compiler matter - comp.unix.solarisHi, I tried to compile a simple hello world C program but the compiler looked for the old host name. How to overcome this problem? /usr/ucb/cc -o ... named common and subprogram names - comp.lang.fortranCompiler matter - comp.unix.solaris named common and subprogram names - comp.lang.fortran If they are both referenced in one routine then I suppose I would expect the ... reordering expressions with NaN - comp.lang.fortranOf course, if the compiler doesn't claim full support of NaNs, that's a very different matter. A compiler is not required to support NaNs at all. To run MPI program using Sun studio cc option - comp.unix.solaris ...Compiler matter - comp.unix.solaris To run MPI program using Sun studio cc option - comp.unix.solaris ... Compiler matter - comp.unix.solaris... options. Runtime error -- mclmcrrt**.dll version conflict - comp.soft-sys ...Compiler matter - comp.unix.solaris ( version 6.2 of the compiler is 5 years old ) Sun Studio ... can't possibly detect and resolve each and every conflict ... g++ compiling error - comp.lang.c++Compiler matter - comp.unix.solaris g++ compiling error - comp.lang.c++ Compiler matter - comp.unix.solaris Hi, I tried to compile a simple hello world C program but the ... ftnchek: identifier has embedded space - comp.lang.fortran ...Tobias Burnus wrote: > On 09/22/2010 08:35 AM, Ian Bush wrote: >> Just wondering, are there any plans in gfortran (or any other >> compiler for that matter) to ... Swatch for Solaris - comp.unix.solarisCompiler matter - comp.unix.solaris Swatch for Solaris - comp.unix.solaris Compiler matter - comp.unix.solaris "NewBie" <yc282004@yahoo.com.sg> writes in comp.unix.solaris ... Solaris 10 - C Compiler ? - comp.unix.solarisHi, We have recenltly installed Solaris 10, it doesn't seem to have a C compiler. Is this right ? Can we install a C compiler from the dist CD's ?... locating c compiler on solaris 10 u 8 - comp.unix.solaris ...Compiler matter - comp.unix.solaris... tried to compile a simple hello world C program but the compiler ... Hi Casper, Where can I locate the license file? ... run time error - comp.soft-sys.matlabCompiler matter - comp.unix.solaris ( version 6.2 of the compiler is 5 years old ) Sun Studio ... can't possibly detect and resolve each and every conflict ... Installation of Matlab Compiler Runtime (MCR) - comp.soft-sys ...To run the exe. file on a computer without matlab installed I have to install the Matlab Compiler Runtime (MCR). Does it matter where I install the MCR? Checking for whether compiler supports C99 or C++0x - comp.lang ...On 2010-08-17 04:48:05 -0400, er said: > Actually, what would be ideal would be check whether the compiler flag > -std=c++0x has been set. DNS Doctoring - comp.dcom.sys.ciscoCompiler matter - comp.unix.solaris DNS Doctoring - comp.dcom.sys.cisco Compiler matter - comp.unix.solaris This often happens when NIS or DNS or the hosts file is ... Apache + SSL + openssl + ( Solaris 10 x86 ). - comp.unix.solaris ...Hi, This seems to be the evil combo.. I've tried various versions of GCC in order to compile the above but so far I've only made it passed openssl.... Matter Compiler by Neal Stephenson from The Diamond AgeMatter Compiler by Neal Stephenson: A device that builds the desired article (such as a dress) atom by atom according to a specified design. (Text quote, book ... Compiler matter - comp.unix.solaris | Computer GroupHi, I tried to compile a simple hello world C program but the compiler looked for the old host name. How to overcome this problem? /usr/ucb/cc -o ... 7/24/2012 4:10:08 PM
|