I am trying to run the staff solution of server.c but I get an error that I need to install rsplib=legacy-wrappers. What does it mean? I just updated the appliance and restarted it, but problem is still there. Thank you.
2 Answers
There are two separate errors here.
No such file or directory.
The reason for this error is likely because you are not running the command from the
~/Dropbox/pset6
directory, which should contain apublic
folder if you've followed all the previous steps. The command you typed in will have theserver
program look for apublic
directory relative to the directory you are currently located in.You can run
cd Dropbox/pset6
and try again, or specify an absolute path to thepublic
folder if you insist on running the program from a different location.The program 'server' is currently not installed. To run 'server' please ask your administrator to install the package 'rsplib-legacy-wrappers'.
To run the staff solution of
server
you must provide an absolute path to the staff's implementation of the program. If you don't, the operating system will assume that you are trying to run an uninstalled Ubuntu package by the same name.
-
1That second error confused me. The problem was a silly one, thank you.– FedericoCommented Jan 14, 2015 at 20:09
To run the staff version, you need to be in your own pset6 directory (where public
is) and then run this:
jharvard@ubuntu (~/Dropbox/CS50/pset6): ~cs50/pset6/server -p 8080 public
Your first try you were in the root directory; your second try you were in the staff directory. Make sure you are in the directory where you've unzipped the pset6 files.