redhat

How to make Redline RPM Library work with Ant?

我的未来我决定 提交于 2019-12-02 12:27:19
I use Ant as a build tool, I put this line into my Ant script at the very beginning: <taskdef name="pure-java-rpm" classname="org.redline_rpm.ant.RedlineTask" classpath="lib/ant/redline-1.1.16.jar" /> I call it further: <pure-java-rpm group="Games" name="${project-unix-name}" version="0" destination="${destdir}"> <zipfileset prefix="/usr/share/games/${project-unix-name}" file="${destdir}/${game-jar-filename}"/> <depends name="java" version=">= 1.7"/> </pure-java-rpm> I get the following error message: BUILD FAILED /home/gouessej/Documents/programmation/java/workspace/tuer/build.xml:445: java

SHGetKnownFolderPath equivalent API in Linux

情到浓时终转凉″ 提交于 2019-12-02 09:54:29
问题 I'm porting some functionality from windows to linux and I'm finding it harder to match the functionality of SHGetKnownFolderPath in linux. Actually there is an API in glib which dose this part but I do not want to use that library here. Also the link does that by exporting variables in .bashrc but I fancy about linux API which does this. Also the here it is explained like how to access xdg-user-dir. IS there any other way of doing this otherwise I'll stick to this.Please shed some light on

redhat 7.6 安装 inotify-tools

蹲街弑〆低调 提交于 2019-12-02 09:19:17
1.解压inotify-tools tar -zxvpf inotify-tools-3.14.tar.gz 2.cd 到解压的目录 3../configure 编译,然后失败,提示checking no的关联包 . 4.需要安装gcc, yum install gcc -y 5.再次执行步骤3正常安装,接下来执行 make ;makeinstall 两条命令完成安装 来源: https://www.cnblogs.com/MOMING95/p/11740746.html

Starting synergy automatically on RHEL/CentOS

℡╲_俬逩灬. 提交于 2019-12-02 07:54:19
问题 I have a Red Had Enterprise Linux 5 and a CentOS 5 box, both of which I am trying to configure to automatically connect to a synergy server on startup. I have followed the guide at http://synergy2.sourceforge.net/autostart.html and configured them the same way I configured previous Ubuntu 7.10 boxes, and this only seems to get me half way there. Currently, synergy connects at the login screen, but once I login, it doesn't come back up. I added the following lines to /etc/gdm/{Init,PostLogin

redhat 5.4 搭建本地YUM源

瘦欲@ 提交于 2019-12-02 07:38:42
redhat 5.4 搭建本地YUM源 在REDHAT 5以后,加入了YUM这个新功能,可以解决RPM包的依赖关系,但不注册RHN的话不这个功能是不能使用的,我们可以使用光盘中自带的RPM包自己动手搭建个本地源,网上的资料是不少,通过我亲手试验证明网上的一些教程都多一些步骤,有些没用的步骤(可能是我暂时不知道用),但搭建本地YUM最简单就可以了,步骤多了会让新手晕的,我就是学什么总喜欢问个所以然,网上的一些步骤,比说/usr/lib/python2.4/site-packages/yum/yumRepo.py,什么有关于comps-rhel5-server-core.xml这些的操作,完全没有必要,我结合的很多的资料,总结出最简单的步骤记录下来 1.将光盘中的Cluster, ClusterStorage, Server, VT,这几个文件COPY到本地目录中,比如我的为/yum/目录, 2.编辑/etc/yum.repos.d/rhel-debuginfo.repo文件,如我的配置文件为 [Cluster] name=Red Hat Enterprise Linux $releasever - $basearch - Debug baseurl=file:///yum/Cluster/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm

BLAS, ATLAS, LAPACK Shared library minimal example

泄露秘密 提交于 2019-12-02 07:36:16
问题 I installed atlas, blas and lapack x86_64 packages via yum install atlas.x86_64 blas.x86_64 lapack.x86_64 on a Redhat 6.6 (ii) distro which installs a shared library but am having problems compiling and linking. For example, if I try to compile the minimal working example: program main print *, 'hello world' end program main using gfortran -L. main.f90 -llapack -lblas -o main the compiler doesn't find the libraries and I get the error message: /usr/bin/ld: cannot find -llapack collect2: ld

SHGetKnownFolderPath equivalent API in Linux

天大地大妈咪最大 提交于 2019-12-02 04:47:33
I'm porting some functionality from windows to linux and I'm finding it harder to match the functionality of SHGetKnownFolderPath in linux. Actually there is an API in glib which dose this part but I do not want to use that library here. Also the link does that by exporting variables in .bashrc but I fancy about linux API which does this. Also the here it is explained like how to access xdg-user-dir. IS there any other way of doing this otherwise I'll stick to this.Please shed some light on this. The status of the Linux desktop is a sad mess, especially for this kind of stuff. There are some

Errors installing RVM

为君一笑 提交于 2019-12-02 04:38:17
I'm trying to install rvm on redhat 5.5 and I'm getting this error: [mc@owl-ci ~]$ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 979 100 979 0 0 8168 0 --:--:-- --:--:-- --:--:-- 318k Cloning into rvm... remote: Counting objects: 18463, done. remote: Compressing objects: 100% (4985/4985), done. remote: Total 18463 (delta 12517), reused 17903 (delta 12002) Receiving objects: 100% (18463/18463), 3.19 MiB, done. Resolving deltas: 100% (12517/12517), done. mkdir:

Starting synergy automatically on RHEL/CentOS

妖精的绣舞 提交于 2019-12-02 04:24:35
I have a Red Had Enterprise Linux 5 and a CentOS 5 box, both of which I am trying to configure to automatically connect to a synergy server on startup. I have followed the guide at http://synergy2.sourceforge.net/autostart.html and configured them the same way I configured previous Ubuntu 7.10 boxes, and this only seems to get me half way there. Currently, synergy connects at the login screen, but once I login, it doesn't come back up. I added the following lines to /etc/gdm/{Init,PostLogin,PreSession}/Default : /usr/bin/killall synergyc sleep 1 /usr/bin/synergyc fried-chicken # Init

BLAS, ATLAS, LAPACK Shared library minimal example

℡╲_俬逩灬. 提交于 2019-12-02 04:01:41
I installed atlas, blas and lapack x86_64 packages via yum install atlas.x86_64 blas.x86_64 lapack.x86_64 on a Redhat 6.6 (ii) distro which installs a shared library but am having problems compiling and linking. For example, if I try to compile the minimal working example: program main print *, 'hello world' end program main using gfortran -L. main.f90 -llapack -lblas -o main the compiler doesn't find the libraries and I get the error message: /usr/bin/ld: cannot find -llapack collect2: ld returned 1 exit status I'm relatively new to fortran and linux so I'm probably missing something obvious.