How to set DYLD_LIBRARY_PATH on Mac OS X Mountain Lion?

Hi all,
I've been struggling to find a proper way to set up DYLD_LIBRARY_PATH variable on Mountain Lion.
I have to use Perl Modules for work purposes but eveytime I try to install some CPAN Module (DBD::Oracle to be exact),perl complains that it can't find the DYLD_LIBRARY_PATH and can't continiue with the installation.
Exact error is:
Trying to find an ORACLE_HOME
Your DYLD_LIBRARY_PATH env var is set to ''
      The ORACLE_HOME environment variable is not set and I couldn't guess it.
      It must be set to hold the path to an Oracle installation directory
      on this machine (or a machine with a compatible architecture).
      See the appropriate README file for your OS for more information.
      ABORTED!
I have downloaded the Oracle Instant Client files for Basic,SQLPLUS and SDK but I don't know how to use these?
When I try the commands:
export PATH="$HOME/.rbenv/bin:$PATH"
and use my directory path of where the instanclient binaries are located for the part "$HOME/.rbenv/bin"  and use "DYLD_LIBRARY_PATH" for '$PATH' but it doesn't helped me at all.
Still the same errors.What should I download in order to set ORACLE_HOME (DYLD_LIBRARY_PATH) and which files I should point the environemt variable to?
Anyone please help me?
Thank a lot

I simply type in "perl [scriptname.pl]".How is this relevant?I'm not able to install modules.
I've tried both the direct download/make/install way and doing it from the package as described in CPAN manuals.
For the direct download way,I simply type in "cpanm DBD::Oracle" for example.It downloads the package,makes and tries to install but fails during the install process.
Second method is downloading the module package from cpansearch.pearl.org and then pointing the terminal to package path,executing "perl Makefile.PL" and then "make install".
Both methods fails with the same DYLD_LIBRARY_PATH error.

Similar Messages

  • How do I change a port in Mac OS X Mountain lion

    Apparently Logmein  makes use of port 2002 in mac OS X  Mountain Lion. I need to use that for some new accounting software. How  do I change the part in Mountain Lion and how would I do an install of  Logmein on the computer to use another port or how, with Logmein  currently installed do I change from port 2002 to some other port. The major question is how do you change port assignments in OS x Mountain Lion?
    Thanks for you help.
    Tom in Dallas

    There isn't a generic way to do what you want.  Not on Microsoft Windows.  Not on OS X.
    The ICANN registry of port numbers exists so that these messes don't happen, or don't happen very often.  So that there are no port conflicts among various applications, and there are ways to request ephemeral (temporary) ports, and (for some applications) to find out which port(s) the application happens to have allocated and is using.  In this case, it appears that folks at LogMeIn and with the accounting software didn't avail themselves of the ICANN port database.  They're using the preferences mechanism as a work-around for that.
    Have a look at ipfw and pfctl tools here (see man ipfw and man pfctl at the Terminal.app prompt), and see if you can figure out how you're going to map just one local application that's opening 2002 to some other port, without disturbing the other application that's mapping to that same port (and colliding).  This is the remapping mechanism and akin to what can happen at some firewalls, and not the requested control over the selected port.  It's not set up to remap local application conflicts.
    The selected port is either a configuration option within the specific tool, or it's hard-coded within the tool.  There's no generic registry of applications and ports.  That's what the ICANN port registry is for.
    The worst-bad-ugly approach is to dump out the executable code, reverse engineer it, and patch the preferred port right into the code; to change the code without using the original source code.  Or some tool-specific configuration file or preferences setting, as and if available.

  • I have a brand new Mac. How do I do the free upgrade to Mountain Lion?

    I have a brand new Mac. How do I do the free upgrade to Mountain Lion?

    http://www.apple.com/osx/uptodate/
    fill out the form

  • How do I install gimp on my mac with OSX Mountain lion? It says it cant find X11.

    How do I install gimp on my mac with OSX Mountain lion? It says it cant find X11.

    Have a look in your Utilities folder - X11 should be there. Launch it and you'll be offered the option to install.

  • Last week I've install Mac OS X Mountain Lion and then after the installation finish my IMAC start up in verbose mode. How can I turn off this mode and start my IMAC normally. I've try to key in the code "sudo nvram boot-args=" in terminal also.

    Last week I've install Mac OS X Mountain Lion and then after the installation finish my IMAC start up in verbose mode. How can I turn off this mode and start my IMAC normally. I've try to key in the code "sudo nvram boot-args=" in terminal also.
    Thank you for all of your answer.

    I've seen it mentioned on here that a PRAM reset may solve it:
    Reset PRAM
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P and R.
    You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • How to re-install iLife 2011 in Mac OS X Mountain Lion unit after you formatted and reinstall OS X?

    How to re-install iLife 2011 in Mac OS X Mountain Lion unit after you formatted and reinstall OS X?

    Sign into the App Store with your Apple ID, click on the Purchases icon in the toolbar, locate the three iLife apps and redownload them.

  • Since I use Mac os x mountain lion it is no more possible to share files with my pc windows 7. Does somebody know how to solve this problem?

    Since I use Mac os x mountain lion it is no more possible to share files with my pc windows 7. Does somebody know how to solve this problem? I have been answered by an Apple technician that with the new Mountain Lion the problem was with Windows. I am not convinced.

    I have renamed my pc and everything is ok with the file sharing SMB. Both my iMac and my pc can share files very easily.

  • How can I make a bootable disk for Mountain Lion?

    How can I make a bootable disk for Mountain Lion?

    Make Your Own Mountain/Lion Installer
    1. After downloading Mountain/Lion you must first save the Install Mac OS X Mountain/Lion application. After Mountain/Lion downloads DO NOT click on the Install button. Go to your Applications folder and make a copy of the Mountain/Lion installer. Move the copy into your Downloads folder. Now you can click on the Install button. You must do this because the installer deletes itself automatically when it finishes installing.
    2. Get a USB flash drive that is at least 8 GBs. Prep this flash drive as follows:
    Open Disk Utility in your Utilities folder.
    After DU loads select your flash drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    Click on the Erase button. The format process can take up to an hour depending upon the flash drive size.
    3. Locate the saved Mountain/Lion installer in your Downloads folder. CTRL- or RIGHT-click on the installer and select Show Package Contents from the contextual menu. Double-click on the Contents folder to open it. Double-click on the SharedSupport folder. In this folder you will see a disc image named InstallESD.dmg.
    4. Plug in your freshly prepared USB flash drive. You are going to clone the content of the InstallESD.dmg disc image to the flash drive as follows:
    Double-click on the InstallESD.dmg file to mount it on your Desktop.
    Open Disk Utility.
    Select the USB flash drive from the left side list.
    Click on the Restore tab in the DU main window.
    Select the USB flash drive volume from the left side list and drag it to the Destination entry field.
    Drag the mounted disc icon from the Desktop into the Source entry field.
    Double-check you got it right, then click on the Restore button.
    When the clone is completed you have a fully bootable installer that you can use without having to re-download Mountain/Lion.
    Note: The term Mountain/Lion used above means Lion or Mountain Lion.

  • How do I get a copy of the Mountain Lion OS that I can use to recover?

    How do I make a disc image of my Mac Mini HD that id bootable and has the operating system with all the programs, settings and data.  If I need to replace a defective hard drive it would be good to have an image on a USB flash drive to restore previous settings and the operating system -- Mountain Lion, 10.8.1.  I have been told that TimeMachine does not make a true disc image.  I want a "hard copy" of the operating system that does not require an internet connection.

    Unfortunately, the link for getting specific hardware versions has disappeared. So basically:
    Get yourself a spare hard drive freshly erased or with a freshly erased partition of around 8 GBs or more.
    Boot to your Recovery HD. Select Reinstall Lion from the main menu.
    From the beginning screen select your spare partition/drive as the target destination then begin the download.
    At the end of the download you will observe an Install button for you to click. Now this is important - as soon as that gadget appears you must abort the installation process. There are only two reliable ways to do this quickly: a. yank the cable for the drive from the computer; b. pull the power on the computer - shut it down quickly.
    This will result in your finding a folder on the drive that contains InstallESD.dmg that you can now use to create a bootable USB flash drive installer based on the special build for your model. Use it until the next public release of Lion appears or you move on to Mountain Lion.
    If you do not stop the download process immediately upon its completion you will end up with an installer that always boots to a non-functioning installation progress window instead of the normal main menu.
    Make Your Own Mountain/Lion Installer
    1. After downloading Mountain/Lion you must first save the Install Mac OS X Mountain/Lion application. After Mountain/Lion downloads DO NOT click on the Install button. Go to your Applications folder and make a copy of the Mountain/Lion installer. Move the copy into your Downloads folder. Now you can click on the Install button. You must do this because the installer deletes itself automatically when it finishes installing.
    2. Get a USB flash drive that is at least 8 GBs. Prep this flash drive as follows:
    Open Disk Utility in your Utilities folder.
    After DU loads select your flash drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    Click on the Erase button. The format process can take up to an hour depending upon the flash drive size.
    3. Locate the saved Mountain/Lion installer in your Downloads folder. CTRL- or RIGHT-click on the installer and select Show Package Contents from the contextual menu. Double-click on the Contents folder to open it. Double-click on the SharedSupport folder. In this folder you will see a disc image named InstallESD.dmg.
    4. Plug in your freshly prepared USB flash drive. You are going to clone the content of the InstallESD.dmg disc image to the flash drive as follows:
    Double-click on the InstallESD.dmg file to mount it on your Desktop.
    Open Disk Utility.
    Select the USB flash drive from the left side list.
    Click on the Restore tab in the DU main window.
    Select the USB flash drive volume from the left side list and drag it to the Destination entry field.
    Drag the mounted disc icon from the Desktop into the Source entry field.
    Double-check you got it right, then click on the Restore button.
    When the clone is completed you have a fully bootable installer that you can use without having to re-download Mountain/Lion.
    Note: The term Mountain/Lion used above means Lion or Mountain Lion.
    As an alternative to the above you can try using Lion DiskMaker 2.0 that automates the process.

  • Upgrade to Mac OS X Mountain Lion

    How do I upgrade from Mac OS X 10.4.11 to Mac OS X Mountain Lion?

    As community member Ralph Landry observed:
    "Yes, you will need to purchase the Mac OS X 10.6 DVD and install from that...then you can update on-line to 10.6.8 so you have the latest version.  DVD set should be $30 (US)."
    So, yes you can go straight to Snow Leopard from 10.4.11.
    Hope this helps

  • How can I do a clean install of Mountain Lion?

    I have an older MacBook Pro that I'm selling. I upgraded to Mounbtain Lion, but there was not an option to do a clean install (wiping everything clean and starting fresh). I want to do this to make sure all of my data is removed before I sell it. How can I do a clean install of Mountain Lion in order to accomplish this? In the past, from DVDs, it was easy. Thanks!

    Budrew wrote:
    Sure, but I would imagine that it will be common for people to sell their Macs with upgraded OSs.
    That was only OK when you bought the Upgrade DVD and included both the original system discs and the disc you used to upgrade the OS.
    Since Apple has now gone to the Download only model of OS X you now always need to install the Original OS or an Upgraded version that you have the DVD disc for.
    If a Mac came with Leopard and you upgraded to Snow Leopard and then to Lion or Mt Lion you must remove Lion or Mt Lion and reinstall either Leopard or Snow Leopard and include all the discs for that system, Originals and the Upgrde Snow Leopard DVD.
    If your system came Snow Leopard and you installed Lion or Mt Lion thenn again you remoeve Lion or Mt Lion and reinstall Snow Leopard and include the original discs that came with the system
    If your system came with Lion and you upgraded to Mt Lion then you remove Mt Lion and reinstall Lion.
    The reason for all of that is because with the Download only OS all upgrades are TIED to YOUR Apple ID, not to the computer. So the new owner can not reinstall Lion or Mt Lion, whichever you upgraded to, without using your Apple ID.

  • How do I do a clean install of Mountain Lion?

    I already have Mac OS X Mountain Lion on my MacBook Pro A1126, but how can I do a clean install on it? Do I have to buy a installation disc or from Mac App Store?
    Thanks in advance!

    I differentiate between a 'clean' installation and a 'fresh' installation by this meaning: a 'clean' installation means that you're going to erase the boot drive and 'cleanly' install everything, including OS X anew, whereas, for me, a 'fresh' installation means only that you're NOT going to erase the entire drive, but only install a 'fresh' version of OS X.
    So which do you wish to do?
    Either way, you should just be able to boot into your Recovery partition (hold down the command and R keys whilst booting) and then either install a 'fresh' version of OS X, or erase the contents of the drive, using Disk Utility, and do a 'clean' install of OS X.
    Mountain Lion does not come on a disc - you should have purchased it via the App Store and you may need your Apple ID to install again from the Recovery partition.
    Does that help?

  • HT1338 when I updated my mac mini to mountain lion it gave me an icon on my desktop of a hard drive, can I delete this?

    when I updated my mac mini to mountain lion it gave me an icon on my desktop of a hard drive, can I delete this?

    Open the General tab of the Finder's preferences and set it not to be displayed on the desktop. Alternatively, if it's a disk image or external disk, just drag it to the Trash.
    (83576)

  • Open dialog crashing in Photoshop Elements 11 (Mac OS X Mountain Lion)

    I downloaded the trial for Photoshop Elements 11 for Mac. I'm using Mac OS X Mountain Lion (10.8.4).
    In the File > Open dialog, if I touch either of the two pop-up menus at the bottom of the dialog, Photoshop Elements crashes. This is 100% consistent and reproducible.
    This means I'm having a bit of trouble getting started at all. Mac users (10.8.4), can you confirm / deny this issue? Thx.
    Oh, by the way, exactly the same thing happens with the pop-up menu in the Save dialog. So if I want to set the image format to save in, I crash.

    Fixed the crash! Unfortunately I'm a bit hazy on the details. The key move was telling TinkerTool to revert to all defaults. But as to exactly which setting was triggering the issue, I'm not sure. I've restored a lot of my TinkerTool settings and the crash has not returned. So clearly I have not yet hit on the crucial one.
    The key observation here was that the crash was not occurring in a new clean user account. So evidently there was something about my primary user account that was essential to the crash. That started me on a long slow process of testing...

  • If you've installed the Mac OS X Mountain Lion and want to restore your MacBook to factory settings, what do you do?

    Havinig a lot of problems with my MacBook since I've upgraded to the Mac OS X Mountain Lion program. Can someone tell me if it's possible to reset my computer back to factory settings?

    Follow these instructions step by step to prepare a Mac for sale:
    Step One - Back up your data:
           A. If you have any Virtual PCs shut them down. They cannot be in their "fast saved" state. They must be shut down from inside Windows.
           B. Clone to an external drive using using Carbon Copy Cloner.
              1. Open Carbon Copy Cloner.
              2. Select the Source volume from the Select a source drop down menu on the left side.
              3. Select the Destination volume from the Select a destination drop down menu on the right
                  side.
              4. Click on the Clone button. If you are prompted about creating a clone of the Recovery HD be
                  sure to opt for that.
                   Destination means a freshly erased external backup drive. Source means the internal
                   startup drive.
    Step Two - Prepare the machine for the new buyer:
              1. De-authorize the computer in iTunes! De-authorize both iTunes and Audible accounts.
              2, Remove any Open Firmware passwords or Firmware passwords.
              3. Turn the brightness full up and volume nearly so.
              4. Turn off File Vault, if enabled.
              5. Disable iCloud, if enabled: See.What to do with iCloud before selling your computer
    Step Three - Install a fresh OS:
         A. Snow Leopard and earlier versions of OS X
              1. Insert the original OS X install CD/DVD that came with your computer.
              2. Restart the computer while holding down the C key to boot from the CD/DVD.
              3. Select Disk Utility from the Utilities menu; repartition and reformat the internal hard drive.
                  Optionally, click on the Security button and set the Zero Data option to one-pass.
              4. Install OS X.
              5. Upon completion DO NOT restart the computer.
              6. Shutdown the computer.
         B. Lion and Mountain Lion (if pre-installed on the computer at purchase*)
             Note: You will need an active Internet connection. I suggest using Ethernet if possible because
                       it is three times faster than wireless.
              1. Restart the computer while holding down the COMMAND and R keys until the Mac OS X
                  Utilities window appears.
              2. Select Disk Utility from the Mac OS X Utilities window and click on the Continue button.
              3. After DU loads select your startup volume (usually Macintosh HD) from the left side list. Click
                  on the Erase tab in the DU main window.
              4. Set the format type to Mac OS Extended (Journaled.) Optionally, click on the Security button
                  and set the Zero Data option to one-pass.
              5. Click on the Erase button and wait until the process has completed.
              6. Quit DU and return to the Mac OS X Utilities window.
              7. Select Reinstall Lion/Mountain Lion and click on the Install button.
              8. Upon completion shutdown the computer.
    *If your computer came with Lion or Mountain Lion pre-installed then you are entitled to transfer your license once. If you purchased Lion or Mountain Lion from the App Store then you cannot transfer your license to another party. In the case of the latter you should install the original version of OS X that came with your computer. You need to repartition the hard drive as well as reformat it; this will assure that the Recovery HD partition is removed. See Step Three above. You may verify these requirements by reviewing your OS X Software License.

Maybe you are looking for