This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
> It shows that it is pointing to runtime/bin Whoops! I meant to get a long listing of the contents of ~/bin. Please send the output of the command "ls -l $HOME/bin/". > It seems that it's not working when I run as the ldm user, though 6.13.10 > used to run fine as the ldm user. > > When I run as root it seems to work. For safety, you shouldn't run the LDM as root. > Below is my install script: > > > #LDM Variables > $LDM_HOME='/home/ldm' > $LDM_FTP='ftp://ftp.unidata.ucar.edu/pub/ldm' > $LDM_VERSION=(Invoke-WebRequest -Uri "$LDM_FTP/versions" -UseBasicParsing > -Verbose:$false).RawContent.Split()[2].Replace('.tar.gz','') > $LDM_ZIP="ldm-$LDM_VERSION.tar.gz" > $LDM_LOG='/tmp/ldm_install.log' > Write-Verbose "LDM Version is $LDM_VERSION" > > #Create LDM Home Directory > nxFile ldmhome { > Ensure = 'Present' > DestinationPath = $LDM_HOME > Type = 'directory' > Owner = 'ldm' > Group = 'domain users' > Mode = '700' > } > > #Install LDM > nxScript ldmApplication { > GetScript = @" > #do nothing > "@ > SetScript = @" > #!/bin/bash > > #stop ldm if it is running and remove link to old version > if [ -f $LDM_HOME/ldmd.pid ] > then > systemctl stop ldm > rm -f $LDM_HOME/runtime > fi > > #download > wget --directory-prefix $LDM_HOME $LDM_FTP/$LDM_ZIP > $LDM_LOG 2>&1 > > #unzip > cd $LDM_HOME > gunzip -c $LDM_ZIP | pax -r '-s:/:/src/:' > rm $LDM_ZIP > > #configure and build > cd $LDM_HOME/ldm-$LDM_VERSION/src/ > ./configure --disable-root-actions >> $LDM_LOG 2>&1 > make install >> $LDM_LOG 2>&1 > make root-actions >> $LDM_LOG 2>&1 There's the problem. The "make root-actions" command *must* be executed by root. > #change permissions back to LDM user > chown -R ldm:'domain users' $LDM_HOME > chmod -R o-rwx $LDM_HOME > chmod -R g-rwx $LDM_HOME > "@ > TestScript = @" > #!/bin/bash > if [ -f $LDM_HOME/ldm-$LDM_VERSION/bin/ldmadmin ] > then > exit 0 > else > exit 1 > fi > "@ > DependsOn = '[nxFile]ldmhome', > '[nxPackage]wget', > '[nxPackage]pax', > '[nxPackage]gcc', > '[nxPackage]libxml2_devel', > '[nxPackage]libstdc_static', > '[nxPackage]zlib_devel', > '[nxPackage]make', > '[nxPackage]bc', > '[nxPackage]perl' > } Regards, Steve Emmerson Ticket Details =================== Ticket ID: FST-256974 Department: Support LDM Priority: Normal Status: Closed =================== NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.