PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Ubuntu 10.04 compatibility problem
Goto page Previous  1, 2
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Licenses and Installation
View previous topic :: View next topic  
Author Message
dholt



Joined: 30 Jul 2008
Posts: 15
Location: The Portland Group Inc.

PostPosted: Tue May 11, 2010 5:58 pm    Post subject: Reply with quote

You will need to apply a patch for Ubuntu 10.04 support.

Save the code included below to a file (pgi-ubuntu.patch) and place it in the directory where you extracted the PGI 10.5 tar file.

Run:

Code:

patch -p0 --dry-run < pgi-ubuntu.patch


If the patch is successful, remove "--dry-run" and apply the patch. Then install normally.

Note: You will need to add a single space after the line "! #! /bin/sh" in the code below (line 53) since the forum is parsing it out. It should read "! #! /bin/sh " without quotations.

pgi-ubuntu.patch:
Code:
*** linux86/10.5/bin/makelocalrc        2010-05-06 17:45:26.000000000 -0700
--- makelocalrc 2010-05-11 17:41:25.332909367 -0700
***************
*** 133,144 ****
      quit
    fi
 
!   y=`strings $LIBC | grep 'GNU C Library (EGLIBC)'`
!   if test $? -ne 0; then
!     x=`strings $LIBC | grep 'GNU C Library' | cut -d, -f1 | awk '{print $7}'`
!   else
!     x=`strings $LIBC | grep 'GNU C Library' | cut -d, -f1 | awk '{print $8}'`
!   fi
 
    if test -n "$x" ; then
      GLIBC_VERSION=$x
--- 133,139 ----
      quit
    fi
 
!   x=`strings $LIBC | grep 'GNU C Library' | sed -e 's/.*version //' -e 's/,/ /' | awk '{print $1}'`
 
    if test -n "$x" ; then
      GLIBC_VERSION=$x
*** linux86-64/10.5/bin/makelocalrc     2010-05-06 17:45:26.000000000 -0700
--- makelocalrc 2010-05-11 17:41:25.332909367 -0700
***************
*** 133,144 ****
      quit
    fi
 
!   y=`strings $LIBC | grep 'GNU C Library (EGLIBC)'`
!   if test $? -ne 0; then
!     x=`strings $LIBC | grep 'GNU C Library' | cut -d, -f1 | awk '{print $7}'`
!   else
!     x=`strings $LIBC | grep 'GNU C Library' | cut -d, -f1 | awk '{print $8}'`
!   fi
 
    if test -n "$x" ; then
      GLIBC_VERSION=$x
--- 133,139 ----
      quit
    fi
 
!   x=`strings $LIBC | grep 'GNU C Library' | sed -e 's/.*version //' -e 's/,/ /' | awk '{print $1}'`

    if test -n "$x" ; then
      GLIBC_VERSION=$x
*** install_mpich       2010-05-11 17:34:09.132871887 -0700
--- install_mpich.new   2010-05-11 17:34:22.252883448 -0700
***************
*** 1,4 ****
! #! /bin/sh

  ##
  ## Copyright 1990-2000, The Portland Group, Incorporated.
--- 1,4 ----
! #! /bin/bash

  ##
  ## Copyright 1990-2000, The Portland Group, Incorporated.
Back to top
View user's profile
khea_actua1



Joined: 06 Nov 2008
Posts: 42
Location: Carleton University

PostPosted: Mon May 31, 2010 10:58 am    Post subject: Trailing spaces Reply with quote

Thanks for the patch!

In my attempt though, copying and pasting the patch from the forum left trailing spaces on every line.. Took me some time to notice that and get the patch to work. Just writing this in case anyone else experiences the same issue.
Back to top
View user's profile
GeoffWiczer



Joined: 09 Jun 2010
Posts: 1

PostPosted: Wed Jun 09, 2010 11:11 am    Post subject: Reply with quote

That patch installed but did not work for me. I ran the patch with and without the dry_run flags, reinstalled and then upon using the compiler, I first get:
pgfortran-Error-Please run makelocalrc to complete your installation
Then form ./makelocalrc -x /opt/pgi/linux86-64/10.5
ERROR: unknown glibc version (stable).

I'm running Ubuntu 10.04 also
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Licenses and Installation All times are GMT - 7 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group