How to install expect rpm?

Hi ,

I am tryin to install expect rpm on my linux machine.

I have the source file expect-5.42.1-1.src.rpm

I am doin this

rpm -ivh expect-5.42.1-1.src.rpm

But I am gettin this error

warning: expect-5.42.1-1.src.rpm: V3 DSA signature : NOKEY, key ID db42a60e

error: cannot create %sourcedir /usr/src/redhat/SOURCES

So, I have created that path.(In the sense, added some dir's)

Now, when I run it again

I have got

warning: expect-5.42.1-1.src.rpm: V3 DSA signature : NOKEY, key ID db42a60e

1.expect: ########################## 100%

But when try to use expect now ,it would say

command not found.

Can someone help me with this.

Thanks,

Sunny

No duplicate or cross-posting, read the rules.

Proceed here: http://www.unix.com/linux/65213-expect-rpm-installation.html\#post302195276

Thread closed.