在CentOS下如何安装motif?

在CentOS下如何安装motif?

 


 

1.下载OpenMotif


ftp://ftp.ics.com/openmotif/2.3/2.3.0/openmotif-2.3.0.tar.gz

 

2.安装OpenMofi


# yum install libX* (最好安装一下)
# tar -xzvf openmotif-2.3.0.tar.gz
# cd openmotif-2.3.0
# vim INSTALL.configure
# ./configure
# make
# make check
# make install


 


3.安装过程中出现“X11/extensions/Print.h: No such file or directory”的解决方法


这是因为系统中缺少libXp-devel
# yum install libXp-devel

 


4.安装过程中出现“X11/bitmaps/gray: No such file or directory”的解决方法

 
这是因为系统中缺少xorg-x11-xbitmaps(x11/xbitmaps (Ubuntu) and xorg-x11-xbitmaps (Fedora Core 5).)
# yum install xorg-x11-xbitmaps


 

5.使用gcc编译motif程序



# cc -o test test.c -L/usr/X11R6/lib -I/usrX11R6/include -lX11 -lXm

 

 

6. 运行程序时出现“error while loading shared libraries: libXm.so.4: cannot open shared object file: No such file or directory”的解决方法

 




# ldconfig /usr/X11R6/lib/

你可能感兴趣的:(在CentOS下如何安装motif?)