|
Post by progressivecat on Dec 22, 2014 20:36:14 GMT 1
I just installed Bacon 3.0.2 on a Mac computer running Yosemite. I created a file called test.bac and put the line below in the file. print "I have a cat named Blanca." I go into the terminal and type "bacon -z test" Ld gives me an error that says it can't find library for lbacon. I went into /usr/local/lib and there is a file called libbacon.a, so it seems the library is there, but Ld can't find it for some reason. How can I make Ld find this file? There is no Ldconfig program like there is on Linux.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Dec 22, 2014 22:00:24 GMT 1
Find out where your libc.so.6 resides and put your dynamic link libraries there.
Be careful with locate, it doesn't always reveal all the instances of a file on your system.
|
|
|
Post by progressivecat on Dec 23, 2014 0:11:37 GMT 1
I couldn't find libc.so.6. I tried locate and that didn't find it. I looked in /usr/lib and /usr/local/lib and I couldn't find it.
|
|
|
Post by Pjot on Dec 23, 2014 8:20:27 GMT 1
Hi progressivecat,
After installation of BaCon, can you also try to run the command 'ldconfig'? This should update the linker cache.
HTH Peter
|
|
|
Post by progressivecat on Dec 24, 2014 1:34:55 GMT 1
Apparently, Mac systems don't come with Ldconfig. When i run that in terminal, I get "command not found."
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Dec 24, 2014 2:38:58 GMT 1
Apparently, Mac systems don't come with Ldconfig. When i run that in terminal, I get "command not found." I'm assuming this is a typo in the post and you really tried sudo ldconfig?
|
|
|
Post by progressivecat on Dec 24, 2014 5:49:46 GMT 1
Yes, I did do "sudo ldconfig."
|
|
|
Post by Pjot on Dec 24, 2014 9:04:06 GMT 1
Can you try to compile your program as follows:
This points out the location to the C compiler explicitly.
If this works, then you can store this commandline option permanently by using the same line one more time and also add the '-w' option:
Then next time, a simple 'bacon test.bac' should work.
HTH Peter
|
|
|
Post by progressivecat on Dec 24, 2014 18:33:05 GMT 1
When I use those options to compile the program, it compiles successfully. Thank you
|
|