Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
file main.lib could not be opened for reading
#1
I followed the instructions for getting and installing scam without any trouble, but I can't run a scam program without getting the error in the title
'file main.lib could not be opened for reading.'  

I can run the program if it is in my scam folder with all of the other scam files but nowhere else, not even a subfolder.
I checked my /usr/bin and scam was copied into there correctly so I'm not sure what the problem is.

Anyone know what could be causing this?
Less keys, less problems
Reply
#2
Looks like a permission problem. Do this:

ls -l ~/scam/*.lib

what does that command output?
Reply
#3
(08-30-2017, 03:42 PM)lusth Wrote: Looks like a permission problem. Do this:

ls -l ~/scam/*.lib

what does that command output?
Command not found 

Lommy:CS 403 Nick$ -l /scam/*.lib
-bash: -l: command not found
Less keys, less problems
Reply
#4
ls -l
Reply
#5
Problem solved!  I missed the part in the instructions that said to create the scam folder hanging off of your home directory and instead just created it wherever I felt like.  

Note to self: stop skimming through the directions
Less keys, less problems
Reply
#6
Yeah, scam looks for the main library in:

/usr/lib

/usr/local/lib

~/scam

.

searching from bottom to top.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)