Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Introduction and problem


    A few days ago I got my own computer, hurray! I decided on Mandriva Linux as my os because it was free. When I finally got it installed I began to put all my favorite programming languages on it using the software management tool. I succesfully put python and perl on it but when I try to download gcc-g++ I get the following error message.

    Sorry, the following package cannot be selected:
    - gcc-c++-4.2.2-3.1mdv2008.0.i586
    What does that mean?

    I made a test script in python to make sure it worked and it did, but when I did the same thing in perl it didnt work.

    I put down this code

    print "Hello World\n";
    I saved this script as hello.txt I went into the command line and said

    perl hello.txt
    and it came up with this
    Cant open perl script, no such file or directory
    Thanks for all the help!

  2. #2
    Linux Guru fingal's Avatar
    Join Date
    Jul 2003
    Birmingham - UK

    Try saving the Perl file with a *.pl extention instead of *.txt. This might be useful for you to read:

    Not sure about the gcc problem. How did you go about installing it? Usually you log in as root and type urpmi gcc...
    I am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso

  3. #3
    Even with the perl extension it doesnt work.

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts