Toon posts:

[mrtg] perl error ? standaard files in RH 8

Pagina: 1
Acties:

Verwijderd

Topicstarter
Als ik mrtg installeer via rpm in RedHat 8.0
En daarna de config file wil draaien die in de contrib staan zoals :

de cisco config maker :
./cfgmaker.cisco monitor@192.168.1.18 >>/etc/mrtg/mrtg.conf
Dan krijg ik deze fout melding :

: bad interpreter: No such file or directory

Nu weet ik dat ik de html pad en work dir heb gewiijzigd naar de goede paden en dat de referal naar perl verkeerd stond.
met de goede rechten.

Nadat ik deze gecorigeerd heb zou het moeten werken.
zoals dit in 7.3 wel deed.

Iemand een idee ik snap er geen ruk van.


tnx

Verwijderd

Topicstarter
If you are using Linux 7.X, vim is the editor being used.
vim can save a file in both unix and dos format.
When saved in dos format, you will get the 'bad interpreter'
message when trying to run a script that uses the
"#!/path/to/interpreter becasue of the garbage chars in the
file (that vim doesn't show you unless you tell it to).
You can vim the file and issue ":set fileformat=unix" and save.
Then try to execute the script again.


euh zelf opgelost door set fileformat=unix

ergens een file foutje ofzo zo uit de pakage van mrtg