[daip] Problems in setting up AIPS in a Macbook Pro with Mac OS X 10.6.3
Eric Greisen
egreisen at nrao.edu
Fri May 7 10:46:07 EDT 2010
Miguel Ángel Pérez Torres wrote:
> Dear Eric,
>
> Please find below the two cases you asked for, using in my .tcshrc file
> setenv AIPS_TEK_EMULATOR xgterm
>
> Case a) "aips"
>
> procida<1>% aips
> START_AIPS: Your initial AIPS printer is the
> START_AIPS: - system name , AIPS type
>
> START_AIPS: User data area assignments:
> DADEVS.PL <http://DADEVS.PL>: This program is untested under Perl
> version 5.010
> (Using global default file /Users/torres/aips/DA00/DADEVS.LIST for
> DADEVS.PL <http://DADEVS.PL>)
> Disk 1 (1) is /Users/torres/aips/DATA/LOCALHOST_1
> Disk 2 (2) is /Users/torres/aips/DATA/LOCALHOST_2
> Disk 3 (3) is /Users/torres/aips/DATA/LOCALHOST_3
> Disk 4 (4) is /Users/torres/aips/DATA/LOCALHOST_4
> Disk 5 (5) is /Users/torres/aips/DATA/LOCALHOST_5
> Disk 6 (6) is /Users/torres/aips/DATA/LOCALHOST_6
> Disk 7 (7) is /Users/torres/aips/DATA/LOCALHOST_7
> Disk 8 (8) is /Users/torres/aips/DATA/LOCALHOST_8
> Disk 9 (9) is /Users/torres/aips/DATA/LOCALHOST_9
> Disk 10 (A) is /Users/torres/aips/DATA/LOCALHOST_10
> Disk 11 (B) is /Users/torres/aips/DATA/LOCALHOST_11
> Disk 12 (C) is /Users/torres/aips/DATA/LOCALHOST_12
>
> Tape assignments:
> Tape 1 is REMOTE
> Tape 2 is REMOTE
>
> START_AIPS: I am GUESSING you are at a workstation called localhost
> START_AIPS: Starting TV servers on localhost asynchronously
> START_AIPS: - with Internet Sockets...
> START_AIPS: Starting TPMON daemons on LOCALHOST asynchronously...
> Starting up 31DEC10 AIPS with normal priority
> DADEVS.PL <http://DADEVS.PL>: This program is untested under Perl
> version 5.010
> Begin the one true AIPS number 1 (release of 31DEC10) at priority = 0
> AIPS 1: ZDCHIN: NO NETSP ENTRY FOR DA0B
> AIPS 1: You are assigned TV device/server 1
> AIPS 1: You are assigned graphics device/server 1
> AIPS 1: Enter user ID number
> ?XASERVERS: Start TV LOCK daemon TVSERV on localhost
> XASERVERS: Start XAS on localhost, DISPLAY
> /tmp/launch-J9XEXn/org.macosforge.xquartz:0
> TVSERVER: Starting AIPS TV locking, Inet domain
> XASERVERS: Start graphics server TEKSRV on localhost, DISPLAY
> /tmp/launch-J9XEXn/org.macosforge.xquartz:0
> XAS: ** TrueColor FOUND!!!
> XAS: *** Using shared memory option for speed ***
> XAS: Using screen width 1270 height 678,
> max grey level 8191 in 16 grey-scale memories
> XASERVERS: Start message server MSGSRV on localhost, DISPLAY
> /tmp/launch-J9XEXn/org.macosforge.xquartz:0
>
> AIPS 1: Enter user ID number
> ?5876
>
> AIPS stops working at this point. The message that I get from the TKSERV
> window is
>
> xgterm: Can't execvp setenv DYLD_LIBRARY_PATH
> /Users/torres/aips/31DEC10/MACINT/LIBR/INTELCMP:/Users/torres/aips/31DEC10/MACINT/LIBR/INTELCMP:/Users/torres/aips/31DEC10/MACINT/LIBR/INTELCMP:/Users/torres/aips/31DEC10/MACINT/LIBR/INTELCMP:/Users/torres/aips/31DEC10/MACINT/LIBR/INTELCMP:/Users/torres/aips/31DEC10/MACINT/LIBR/INTELCMP:/Users/torres/aips/31DEC10/MACINT/LIBR/INTELCMP:/Users/torres/aips/31DEC10/MACINT/LIBR/INTELCMP:/Users/torres/aips/31DEC10/MACINT/LIBR/INTELCMP:/Users/torres/aips/31DEC10/MACINT/LIBR/INTELCMP
> ;/Users/torres/aips/31DEC10/MACINT/LOAD/TEKSRV.EXE
> procida<1>%
>
> Case b) "aips tv=local"
>
> procida<7>% aips tv=local
> START_AIPS: Will use or start first available Unix Socket based TV
> START_AIPS: Your initial AIPS printer is the
> START_AIPS: - system name , AIPS type
>
> START_AIPS: User data area assignments:
> DADEVS.PL <http://DADEVS.PL>: This program is untested under Perl
> version 5.010
> (Using global default file /Users/torres/aips/DA00/DADEVS.LIST for
> DADEVS.PL <http://DADEVS.PL>)
> Disk 1 (1) is /Users/torres/aips/DATA/LOCALHOST_1
> Disk 2 (2) is /Users/torres/aips/DATA/LOCALHOST_2
> Disk 3 (3) is /Users/torres/aips/DATA/LOCALHOST_3
> Disk 4 (4) is /Users/torres/aips/DATA/LOCALHOST_4
> Disk 5 (5) is /Users/torres/aips/DATA/LOCALHOST_5
> Disk 6 (6) is /Users/torres/aips/DATA/LOCALHOST_6
> Disk 7 (7) is /Users/torres/aips/DATA/LOCALHOST_7
> Disk 8 (8) is /Users/torres/aips/DATA/LOCALHOST_8
> Disk 9 (9) is /Users/torres/aips/DATA/LOCALHOST_9
> Disk 10 (A) is /Users/torres/aips/DATA/LOCALHOST_10
> Disk 11 (B) is /Users/torres/aips/DATA/LOCALHOST_11
> Disk 12 (C) is /Users/torres/aips/DATA/LOCALHOST_12
>
> Tape assignments:
> Tape 1 is REMOTE
> Tape 2 is REMOTE
>
> START_AIPS: Starting TV servers on localhost asynchronously
> START_AIPS: - WITH Unix Sockets as requested...
> START_AIPS: Starting TPMON daemons on LOCALHOST asynchronously...
> Starting up 31DEC10 AIPS with normal priority
> Begin the one true AIPS number 1 (release of 31DEC10) at priority = 0
> AIPS 1: ZDCHIN: NO NETSP ENTRY FOR DA0B
> AIPS 1: You are not on a local TV device, welcome stranger
> AIPS 1: You are assigned TV device/server 2
> AIPS 1: You are assigned graphics device/server 2
> DADEVS.PL <http://DADEVS.PL>: This program is untested under Perl
> version 5.010
> AIPS 1: Enter user ID number
> ?UNIXSERVERS: Start TV LOCK daemon TVSRV1 on localhost
> TVSERVER: Starting AIPS TV locking, Unix (local) domain
> UNIXSERVERS: Start XAS1 on localhost, DISPLAY
> /tmp/launch-J9XEXn/org.macosforge.xquartz:0
> UNIXSERVERS: Start graphics server TKSRV1 on localhost, display
> /tmp/launch-J9XEXn/org.macosforge.xquartz:0
> XAS: ** TrueColor FOUND!!!
> XAS: *** Using shared memory option for speed ***
> XAS: Using screen width 1270 height 678,
> max grey level 8191 in 16 grey-scale memories
> Shared memory id failure: Cannot allocate memory
> UNIXSERVERS: Start message server MSSRV1 on localhost, display
> /tmp/launch-J9XEXn/org.macosforge.xquartz:0
>
> AIPS 1: Enter user ID number
> ?5876
> AIPS 1: 31DEC10 AIPS:
> AIPS 1: Copyright (C) 1995-2010 Associated Universities, Inc.
> AIPS 1: AIPS comes with ABSOLUTELY NO WARRANTY;
> AIPS 1: for details, type HELP GNUGPL
> AIPS 1: This is free software, and you are welcome to redistribute it
> AIPS 1: under certain conditions; type EXPLAIN GNUGPL for details.
> AIPS 1: Previous session command-line history recovered.
> AIPS 1: TAB-key completions enabled, type HELP READLINE for details.
>
> AIPS 1: Recovered POPS environment from last exit
> >
>
>
> AIPS is able to continue to work. The message that I get from the TKSERV
> window is the same as in the previous case, i.e.
>
> xgterm: Can't execvp setenv DYLD_LIBRARY_PATH
> /Users/torres/aips/31DEC10/MACINT/LIBR/INTELCMP:/Users/torres/aips/31DEC10/MACINT/LIBR/INTELCMP:/Users/torres/aips/31DEC10/MACINT/LIBR/INTELCMP:/Users/torres/aips/31DEC10/MACINT/LIBR/INTELCMP:/Users/torres/aips/31DEC10/MACINT/LIBR/INTELCMP:/Users/torres/aips/31DEC10/MACINT/LIBR/INTELCMP:/Users/torres/aips/31DEC10/MACINT/LIBR/INTELCMP:/Users/torres/aips/31DEC10/MACINT/LIBR/INTELCMP:/Users/torres/aips/31DEC10/MACINT/LIBR/INTELCMP:/Users/torres/aips/31DEC10/MACINT/LIBR/INTELCMP
> ;/Users/torres/aips/31DEC10/MACINT/LOAD/TEKSRV.EXE
> procida<1>%
>
I see one thing which needs to be fixed and I will ask our Mac expert to
comment on the setenv issue.
In the 2nd case (oddly not in the first since this should not be
different) there is a shared memory ID failure. Macs set an upper limit
on the size of shared memory which is way too small. You can change this
On the latest "leopard" systems, /etc/rc is gone and creating it will
have no effect. You need to create an /etc/sysctl.conf file and put the
values in it,
kern.sysv.shmmax=10485760
kern.sysv.shmmin=1
kern.sysv.shmmni=32
kern.sysv.shmseg=8
kern.sysv.shmall=4096
You should use the values you had when you were running tiger. Those
could be in /Previous\ System/etc/rc, assuming you have "Previous
System". So three different OS upgrades and three different ways to
adjust the default shared memory. Note: You will need to reboot the
system for the change in shared memory to take place. You can check if
the shared memory changes happened by typing "sysctl kern.sysv" in a
terminal or xterm window. Look for the kern.sysv.shm* values. If the
values have not changed, make sure you haven't inadvertently left in
"sysctl -w" in the /etc/sysctl.conf file or mis-typed one of the values.
If the /etc/sysctl.conf file is not properly formatted, or shmmax is not
an integer multiple of shmall, the shared memory will not be adjusted
after the reboot.
is an exerpt from the aips manager FAQ page on this issue.
Do you use bash or tcsh shells?
Eric Greisen
More information about the Daip
mailing list