[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[McIDAS #JTG-722928]: installation error



Hi Justin,

re:
> I ran into the following error when attempting to run "make all" with the
> mcidas distribution
> 
> *m0tcolor.c:9:76: error: X11/Intrinsic.h: No such file or
> directorym0tcolor.c:10:28: error: X11/StringDefs.h: No such file or
> directorycompile    m0tcolor.c:        FAILED*
> 
> The log is attached.
> 
> Do I just need to install these individual header files?

One never installs individual files.  Instead, one installs packages that
have the file(s) needed.

re:
> I was able to solve the original error I sent you.

Hopefully you did this by installing the appropriate package.  If,
for instance, your machine is running a RedHat-derived version of
Linux (e.g., RedHat Enterprise, CentOS, Fedora, etc.), then you would
use 'yum' to install packages.

The packages I found that I had to install in my McIDAS development
environment that is running in CentOS 6.x x86_64 were:

McIDAS-X Development
--------------------------------------
gcc-gfortran
gcc-c++
byacc
flex
ncurses-devel
libXt-devel
libXext-devel

ADDE remote serving
--------------------------------------
xinetd

Fonts for McIDAS-X
--------------------------------------
xorg-x11-fonts-misc     <- for mctext
xorg-x11-fonts-100dpi   <- for McGUI
xorg-x11-fonts-75dpi    <- for McGUI

For LDM 6.11.x
--------------------------------------
libxml2-devel
also, set SELINUX to disabled and reboot

create /etc/init.d/ldmd
chkconfig --add ldmd

To install of the packages for McIDAS-X, one can run one 'yum' invocation:

<as 'root'>
yum install gcc-gfortran gcc-c++ byacc flex ncurses-devel libXt-devel 
libXext-devel xinetd xorg-x11-fonts-misc xorg-x11-fonts-100dpi 
xorg-x11-fonts-75dpi

No worries if one or more packages is already intalled.

re:
> I am now encountering a new error.
> 
> *D__64BIT__ -O3
> -I/home/mcidas/mcidas2009/g2clib/../jasper/src/libjasper/include
> -DUSE_JPEG2000   -c -o seekgb.o seekgb.cmake[1]: D__64BIT__: Command not
> foundmake[1]: [seekgb.o] Error 127 (ignored)ar ruv libgrib2c.a *.oar:
> creating libgrib2c.aar: *.o: No such file or directorymake[1]: ***
> [libgrib2c.a] Error 1make[1]: Leaving directory
> `/home/mcidas/mcidas2009/g2clib'make    /home/mcidas/mcidas2009/g2clib:
> FAILED*

Your 'makelog' is strongly suggesting that the environment for the user
building McIDAS-X is not configured fully.   I say this because of lines
that look like:

D__64BIT__ -O3 -I/home/mcidas/mcidas2009/g2clib/../jasper/src/libjasper/include
-DUSE_JPEG2000 -c -o seekgb.o seekgb.cmake[1]: D__64BIT__: Command not found 

This line is missing the name of the C compiler to be run (gcc in your case), 
and
this, in turn, is suggesting that the CC environment variable was not set before
the build attempt.

The recommendation is to setup environment for the user building Unidata 
McIDAS-X
as outlined in:

Unidata HomePage
http://www.unidata.ucar.edu

  Software -> McIDAS
  http://www.unidata.ucar.edu/software/mcidas/

    Documentation
    http://www.unidata.ucar.edu/software/mcidas/#documentation

      User's Guide
      http://www.unidata.ucar.edu/software/mcidas/current/users_guide/toc.html

The relevant portion of the User Guide is:

Chapter 1 - Installing and Configuring McIDAS-X -> Installing McIDAS-X on Unix 
or Mac OS X Workstations
http://www.unidata.ucar.edu/software/mcidas/current/users_guide/InstallingMcIDAS-XonUnixorMacOSXWorkstations.html

  Preparing the mcidas Account
  
http://www.unidata.ucar.edu/software/mcidas/current/users_guide/PreparingthemcidasAccount.html

The part I am referring to is adding the appropriate 'sourcing' in your
user's shell-specific definition file (e.g., .cshrc for C-like shells,
.bash_profile for Bash, etc.).  Here is the example listed for Bash:

# McINST_ROOT and VENDOR conforming shell defines
# needed to bulid McIDAS
McINST_ROOT=$HOME
VENDOR=-gfortran
export McINST_ROOT VENDOR

# NOTE: uncomment the next two lines that set MySQL_ROOT if you
#       want to build with MySQL support:
#       - leave the value blank if MySQL is installed in a standard
#         location
#       - specify the value as the root directory of the MySQL
#         installation if MySQL is not installed in a standard
#         location
# MySQL_ROOT=TRUE
# export MySQL_ROOT

if [ -e $HOME/admin/mcidas_env.sh ]; then
  . $HOME/admin/mcidas_env.sh
fi

If you have any other McIDAS defines in your shell definition file,
remove them before adding this section.  After making the changes
the easiest thing to do is logoff and then log back on.

Once all of the environment variables have been defined fully/correctly,
you will need to do the following:

cd ~mcidas/mcidas2009/src
make clobber

make       <- builds McIDAS-X

OR

make all   <- builds McIDAS-X and McIDAS-XCD

Please let me know if the above approach does not work for you.

Cheers,

Tom
--
****************************************************************************
Unidata User Support                                    UCAR Unidata Program
(303) 497-8642                                                 P.O. Box 3000
address@hidden                                   Boulder, CO 80307
----------------------------------------------------------------------------
Unidata HomePage                       http://www.unidata.ucar.edu
****************************************************************************


Ticket Details
===================
Ticket ID: JTG-722928
Department: Support McIDAS
Priority: Normal
Status: Closed


pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy