[Q] chmod: command not found error during anaconda package install

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

 



I added my program RPM file to RedHat/RPMS directory and modified comps.xml file.
When I install this custom install CD, there are some errors.

Error messages in the /mnt/sysimage/root/install.log file are as follows;
.....
Installing myprogram-0.1-1.
/var/tmp/rpm-tmp.24351: line 1: chmod: command not found
/var/tmp/rpm-tmp.24351: line 2: ln: command not found
/var/tmp/rpm-tmp.24351: line 3: chown: command not found
/var/tmp/rpm-tmp.24351: line 4: chmod: command not found

I found these commands(chmod, ln, chown etc.) in /usr/bin directory. but install scripts can't find it.

The %post script of myprogram.spec fils are as follows:
%post
chmod 755 /etc/rc.d/init.d/myprogram
ln -s /usr/local/myprogram/bin/myprogram /usr/sbin/myprogram
chown ...
chmod ...

But another RPMS are installed successfully.

I think I can't use absolute path(/usr/bin/ln etc.) because the path of common linux is "/bin".

what is the problem? 


Lee.




[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux