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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:30:42+00:00 2026-06-14T02:30:42+00:00

I have a .so file which contains a reference to /Library/Frameworks/Python.framework/Versions/2.7/Python (I can see

  • 0

I have a .so file which contains a reference to /Library/Frameworks/Python.framework/Versions/2.7/Python (I can see this path hard-coded in plaintext within the .so file). I don’t have access to the source that built the .so file.

I’d like to use a different version of the python library (stored in /opt/local/Library). Is it possible to edit the .so file to reassign this path?

  • 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-14T02:30:43+00:00Added an answer on June 14, 2026 at 2:30 am

    You may be able to permanently change the reference by using install_name_tool included with OS X Xcode command line tools.

    install_name_tool -change old-lib-path new-lib-path path-to.so
    

    However, if new-path is longer than the original old-path, there may not be room in the field in the bundle file (.so) to do so. The man page for install_name_tool cautions:

    For this tool to work when the install names or rpaths are larger the
    binary should be built with the ld(1) -headerpad_max_install_names
    option.

    Also, there is no guarantee that the new Python you wish to use was built in a way that is compatible with the old shared library expected by the .so you are trying to modify. There may be differences in universal CPU architectures, OS X deployment targets, and Python build options (for example, UCS-2 vs UCS-4) that may preclude success. You should make a copy of the .so before attempting to modify it.

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

Sidebar

Related Questions

I have a JSON file which contains a pound symbol in it. This json
I have a class library project which contains a java script file libscript.js which
I have a file which contains lines of data in the following format: a11
i have a file which contains a lot of update query and some other
I am using Ruby (1.9.3) and Rails (3.2.2). I have tasks file which contains
I have a JSON file which contains HTML content. I want to load it
I have a dotx file which contains placeholders to be replaced with DB values
I have a text file which contains data seperated by '|'. I need to
I have a txt file which contains a google adsense code block and I'm
I have a txt file which contains data in the following format: X1 Y1

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.