"ERROR: Linker : not found" ubuntu linux server 7

Hi forum,

during installation , this error occurs:


Installing software into /opt/pgi (this may take some time).
###############################################

ERROR: Linker : not found
test: 604: ==: unexpected operator
test: 489: ==: unexpected operator
Please enter your name:


my installation is ubuntu-server-7.04-amd64 with build-essential package installed (compilers, libc6, …).

Any hints?

thx
Simon

Hi Simon,

While we have not seen this error before and are unable to recreate it, we suspect that it might be due to the PGI installer’s makelocalrc script use of macro variables that are not enclosed with double quotes. Please try the following:

In your $PGI/linux86-64/7.0-6/bin directory, modify line 581 of the makelocalrc script to enclose the $G77DIR variable in quotes (see below). Next, run “$PGI/linux86-64/7.0-6/bin/makelocalrc -x $PGI/linux86/7.0-6”. (Replace 7.0-6 with the actual release number if different).

Thanks,
Mat

Change line 581 of makelocalrc from

if test $G77DIR == '""' ; then  # {

to

if test "$G77DIR" == '""' ; then  # {

Modification of makelocalrc didn’t solve the problem.

The problem (found in tmpfile generated by makelocalrc):


In file included from /usr/include/features.h:346,
from /usr/include/stdio.h:28,
from /tmp/PGI-INSTALL.6139/hello-6139.c:1:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory


Fixed with installation of the package

libc6-dev-i386



Now the linker is found, but this error occurs:

Installing software into /opt/pgi (this may take some time).
###############################################

test: 604: ==: unexpected operator
test: 604: ==: unexpected operator
test: 489: ==: unexpected operator
Please enter your name:


Regardless of these errors, I was able to compile netcdf, make test and make check didn’t report any errors.

But WRFV2.2 test cases don’t compile.


ubuntu-server is quite minimal, I’ll try xubuntu desktop edition. If this works, I know it’s due to missing packets.

S.

Problem

test: 604: ==: unexpected operator
test: 604: ==: unexpected operator
test: 489: ==: unexpected operator

solved by replacing symlink /bin/sh → /bin/dash with /bin/sh → /bin/bash

xubuntu desktop made no difference.

S.

All,

I am having the same problem; The only difference is that I am using a 32 bit machine with the latest version of Ubuntu. When I try to install the libc6-devi386 I get the error message that this library was meant for the AMD 64 architecture. When I try to install the version appropriate for the 32 bit Intel, I get a message which says that I already have an updated version installed. I am now very frustrated and have no idea what to do… Cheers, Nathaniel

Hi Nathaniel,

Perhaps uninstall all the previous versions and its dependencies and then install it fresh will solve the problem? Perhaps Ubantu folks know a quick way to fix it.

Hongyon

Hello

I have similar problem on Ubuntu 9.10 Karmic Koala 64bit. When I try to install PGI Workstation Complete , I get this message:

ERROR: Linker :not found

Making symbolic links in /opt/pgi/linux86/2010
Making symbolic links in /opt/pgi/linux86-64/2010

Please do you have any ideas?

What i did was modifying the two files in source folder
linux86-64/bin/makelocalrc
linux86/bin/makelocalrc

File 1:
At line 564 (after the line “get_linker_version # returns LINKER”) add
LINKER=“/lib64/ld-linux-x86-64.so.2”

File 2:
At line 564… add
LINKER=“/lib/ld-linux-x86-64.so.2”



Tuan