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 8428661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:07:05+00:00 2026-06-10T05:07:05+00:00

So an executable file wasn’t working, and I found this post ( http://hintsforums.macworld.com/showthread.php?t=126972 ):

  • 0

So an executable file wasn’t working, and I found this post (http://hintsforums.macworld.com/showthread.php?t=126972):

I have added this line to the environment variables:

Code:

export CFLAGS="$CFLAGS -I/usr/include/" LFLAGS="$LFLAGS -arch i386 -I/usr/local/lib"
    ./configure --disable-shared .... --cc=gcc-4.0 --enable-cross-compile --arch=i386 --target-os=darwin*

and added –disable-yasm to the ./configure and it got compiled perfectly.”

Knowing nothing of environment variables, I googled and set up a Plist file, but now I am confused. I am supposed to add rows of key/value pairs? would the keys be “CFlags”, “LFlags”, and then what? What about the export? Maybe I am missing the mark all together. I am very inexperienced. Step by step instructions would be very nice.

Help would be appreciated. Thanks in advance!

  • 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-10T05:07:06+00:00Added an answer on June 10, 2026 at 5:07 am

    It’s in the code you quoted, run this line in terminal:

    $export CFLAGS="$CFLAGS -I/usr/include/" LFLAGS="$LFLAGS -arch i386 -I/usr/local/lib"
    

    “export” is used to tell all the sub processes those shell spawns about the ENVIRONMENT VARIABLES, i.e. in this example, CFLAGS and LFLAGS.

    However, if you don’t “export”, then the ENVIRONMENT VARIABLES you set will only be available for the command follows it:

    $CFLAGS="$CFLAGS -I/usr/include/" LFLAGS="$LFLAGS -arch i386 -I/usr/local/lib" some-command
    $some-command
    

    the first “some-cammand” know about CFLAGS and LFLAGS but the second does not.

    BTW: the “$” symbol indicates a separated shell command.

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

Sidebar

Related Questions

To embed a executable file I have written this code <?php $file = C:/embed;
How to open the executable file in this Java Project? I would like to
I want to run a executable file from my php script and the command
I've got an executable file (C++, i386, compiled under MacOS/X Tiger, if it matters)
I was wondering how to kill an executable file from xna. i call the
I need to trigger an executable file(built using .net) using the command prompt. For
What is the basis difference between an executable file and a non-executable file? is
I have running process but it's executable file has got deleted. If I try
My goal is to use a script that will install an executable file on
How can I get the folder in which a C# WinForms executable file is

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.