Find the answer to your Linux question:
Results 1 to 3 of 3
Hello. 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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2008
    Posts
    3

    Introduction and problem


    Hello.

    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.

    Code:
    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

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

    Code:
    perl hello.txt
    and it came up with this
    Code:
    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
    Location
    Birmingham - UK
    Posts
    1,539
    Hello

    Try saving the Perl file with a *.pl extention instead of *.txt. This might be useful for you to read: http://www.linuxforums.org/programmi..._lesson_1.html

    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
    Just Joined!
    Join Date
    Mar 2008
    Posts
    3
    Even with the perl extension it doesnt work.

Posting Permissions

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