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

  • Home
  • SEARCH
  • 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 4627094
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:31:00+00:00 2026-05-22T03:31:00+00:00

i guys i have a problem, i want to run a haskell script that

  • 0

i guys i have a problem, i want to run a haskell script that imports libClang (import Clang), i made a cabal install libClang befor and it work

now when i make runhaskell foo.hs i get:

foo.hs: <command line>: can't load .so/.DLL for: clang (libclang.so: cannot open shared object file: No such file or directory)

i know that i have to add the library path to LD_LIBRARY_PATH so i add some paths to it because i dont know exactly which i have to use (should i use the lib path to the clang/llvm path or the lib path to the .cabal dir where my LibClang-9.0.0 is?)

so i got:

echo $LD_LIBRARY_PATH 
/home/foo/Downloads/clang+llvm-2.9-i686-linux/lib:/home/foo/.cabal/lib

after running runhaskell again, the same problem still extists, what should i do?

  • 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-05-22T03:31:01+00:00Added an answer on May 22, 2026 at 3:31 am

    On Arch Linux, at least, clang installs into:

    /usr/lib/llvm/libclang.a
    /usr/lib/llvm/libclang.so
    

    so the linker can find this library. You can also add paths to:

    $ echo $LDFLAGS 
    -L/usr/local/lib -L/home/dons/lib
    
    $ echo $LD_LIBRARY_PATH 
    /home/dons/lib
    

    to help the linker out.

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

Sidebar

Related Questions

i have a problem guys i made a wpf applications its running well but
hey guys m running into a problem, i have a forloop n in that
Problem solved: Thanks guys, see my answer below. I have a website running in
How have you guys handled working with jQuery includes <script type=text/javascript src=jquery.js></script> in Asp.Net
I have heard several podcasters (most recently the guys on DotNetRocks ) say that
I have a Hudson job that launches a .bat script file that itself launches
i have a problem so hope you guys can help! I have a string
I have the following problem. There's a pagecontrol on my form and I want
Guys, sorry for asking basic question, i have a problem here where I have
When reading about SQL Injection and XSS i was wondering if you guys have

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.