install problem

My operating system:Kubuntu Linux 6.10
kernel: 2.6.17
glibc :2.4
CPU :amd64X2
memery :1GB
PGI workstation complete : 7.0.2

When I install PGI workstation complete,the install promgram output :



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

##############################################

ERROR: Linker : not found
test: 603: ==: unexpected operator
localrc has not changed

what wrong with install?

Thank you ver much

Hi eris.Chang,

To determine which dynamic linker you have installed, the install script checks the verbose output from gcc for the keyword “-dynamic-linker”. For some reason on your system, either gcc or a linker is not installed.

Please post the output of the following commands:

% cat hello.c
#include <stdio.h>
int main () {
   printf ("hello\n");
   return 0;
}
% gcc -v hello.c > & tmp.out
% cat tmp.out
% grep collect2 tmp.out | sed q | sed -e 's/.* -dynamic-linker //' -e 's/ .*//'

Thanks,
Mat

Thank you

follow is tmp.out

Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
 /usr/lib/gcc/i486-linux-gnu/4.1.2/cc1 -quiet -v hello.c -quiet -dumpbase hello.c -mtune=generic -auxbase hello -version -fstack-protector -fstack-protector -o /tmp/ccXPhLN6.s
ignoring nonexistent directory "/usr/local/include/i486-linux-gnu"
ignoring nonexistent directory "/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../i486-linux-gnu/include"
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc/i486-linux-gnu/4.1.2/include
 /usr/include
End of search list.
GNU C version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5) (i486-linux-gnu)
        compiled by GNU C version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5).
GGC heuristics: --param ggc-min-expand=63 --param ggc-min-heapsize=63469
Compiler executable checksum: 9dfacd053f7c05ab266630071b88af60
 as -V -Qy -o /tmp/ccYyhvH6.o /tmp/ccXPhLN6.s
GNU assembler version 2.17 (i486-linux-gnu) using BFD version 2.17 Debian GNU/Linux
 /usr/lib/gcc/i486-linux-gnu/4.1.2/collect2 --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crt1.o /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crti.o /usr/lib/gcc/i486-linux-gnu/4.1.2/crtbegin.o -L/usr/lib/gcc/i486-linux-gnu/4.1.2 -L/usr/lib/gcc/i486-linux-gnu/4.1.2 -L/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib -L/lib/../lib -L/usr/lib/../lib /tmp/ccYyhvH6.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/i486-linux-gnu/4.1.2/crtend.o /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crtn.o



root@kubuntu:/home/eris/pgi# grep collect2 tmp.out | sed q | sed -e 's/.* -dynamic-linker //' -e 's/ .*//'
/lib/ld-linux.so.2
root@kubuntu:/home/eris/pgi#

Thanks

Hi eris.Chang,

Is Kubuntu 6.10 a 64-bit or 32-bit OS? What is the output of “uname -m”?

My guess is that Kubuntu is a 64-bit OS but the GCC version your using is 32-bits. If this is the case, do you have 64-bit GCC available? If not, then you’ll only be able to install the 32-bit PGI compilers.

  • Mat

My operating system: Kubuntu Linux 7.10
kernel: 2.6.22-14-generic
CPU :Intel® Core™2 Quad CPU Q6600 @ 2.40GHz 64bits
RAM : 2GB

When I try to install the PGI Workstation the follow error occurs:


ERROR: Linker : not found
test: 620: ==: unexpected operator
test: 994: ==: unexpected operator

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

Hi,
Our Ubantu user recommends updating a symlink .
From /bin/sh -> /bin/dash

To /bin/sh -> /bin/bash

And then either reinstall or rerun makelocalrc.

See this thread for detail:
https://forums.developer.nvidia.com/t/error-linker-not-found-ubuntu-linux-server-7/130804/1

Hongyon