Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8464475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:45:26+00:00 2026-06-10T14:45:26+00:00

I know no Perl, so please be patient! This is a bit from the

  • 0

I know no Perl, so please be patient!
This is a bit from the script, that generates the error:

    if (-x '/usr/bin/gcc') {
        $gcc = Fink::Services::enforce_gcc(<<GCC_MSG);
Under CURRENT_SYSTEM, Fink must be bootstrapped or updated with gcc
EXPECTED_GCC, however, you currently have gcc INSTALLED_GCC selected.
This typically is due to alteration of symlinks which were
installed by Xcode. To correct this problem, you will need
to restore the compiler symlinks to the configuration that
Apple provides.
GCC_MSG
        $gcc = "-gcc" . $gcc;
    }

This script installs fink package manager on Macs. (I’m not a Mac user, trying to help out my friend to install a program that is originally a GNU program and needs to be compiled from sources).

The install script complains about the version of GCC being not what it expects. I suspect that this is the place that fails, but don’t quite understand what is it doing.

I’ve tried creating a symlink to the installed GCC, which is version 4.2.1, while fink wants version 4.2.

This message is displayed if I put a symlink to GCC into /usr/bin. Otherwise it identifies the version of GCC properly and refuses to install.

I thought that -x switch is similar to Bash and means that it is checking that the file is an executable, but I’m not sure what exactly does it do in Perl and would it treat a link to an executable as executable?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T14:45:27+00:00Added an answer on June 10, 2026 at 2:45 pm

    it test is the file has the executable bit set.
    in your case: chmod -x /usr/bin/gcc will cause your if block to no execute.
    chmod +x /usr/bin/gcc will casue your if block to get execute.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know from Learning Perl, 6th Ed. (ISBN: 978-1-449-30358-7) p.58 that ($x, $y) =
Does anybody know a Perl library that can parse XML documents and enables me
I know this is possible in Perl, but I was wondering if this can
I know there is a way to call Perl routines from C. As shown
I know a great thing about perl is that there's multiple ways of doing
I am new to Perl, but I know a little bit of C though.
I have a perl hash that I am indexing like this: my %hash; $hash{'number'}{'even'}
(This may belong on serverfault, since apache is causing the error; please move if
Rank beginner here please be gentle... I'm writing a program in perl that finds
I'm still learning Perl and CLASS::DBI. I have a script that does a bunch

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.