• Magicka compile failure

    From Dumas Walker@21:1/175 to Apam on Sun Feb 4 18:53:53 2018
    I am trying to compile Magicka on a Pi 2. Got through these steps without error:



    Ensure you have git, c compiler, libsqlite3-dev, libreadline-dev, libssl-dev, libssh-dev libncurses5-dev and gnu make

    sudo apt-get install build-essential libsqlite3-dev libreadline-dev git libssl-dev libssh-dev libncurses5-dev

    should work on debian and debian derivatives.

    Clone the repo git clone https://github.com/MagickaBBS/MagickaBBS

    However, I have not had luck with 'make www' or 'make'. make www fails immediately (sorry, the error has scrolled off), and a simple make runs about 5-10 minutes before failing with:

    cd ../deps/cdk-5.0-20161210/ && ./configure
    /bin/sh: 1: ./configure: Permission denied

    That is followed by a recipe error (libcdk.a) 126 (multiple error lines summarized -- I am having to type this into another PC)
    Makefile:30: recipe for target 'magicka' failed
    make error 2

    I checked and the bbs users has rwx access to the configure script. The user belongs to its own group as well as cdrom, sudo, video, games, and users.

    I had success compiling on my 32-bit debian machine. That user has access to additional groups... tty, lp, and dialout. Don't have any idea if that matters. All of the file permissions match what is on the 32-bit machine, so I am not sure why permission would be denied.
    --- SBBSecho 3.03-Linux
    * Origin: CCO BBS - capitolcityonline.net:26 (21:1/175)
  • From apam@21:1/125 to Dumas Walker on Mon Feb 5 10:20:16 2018
    However, I have not had luck with 'make www' or 'make'. make www fails immediately (sorry, the error has scrolled off), and a simple make runs

    make www would have failed if you don't have libmicrohttpd-dev installed.

    cd ../deps/cdk-5.0-20161210/ && ./configure /bin/sh: 1: ./configure: Permission denied

    This is a mystery. What happens if you go into deps/cdk-5.0-20161210 and
    type ./configure manually?

    Are you compiling with the same user that checked out the source? are you
    able to run /bin/sh ?

    If you want to get a log of everything, you should be able to do
    something like this:

    make > logfile.txt 2>&1

    You wont see any output though as it is redirected to the log file. If
    you want you could email me the log.

    Andrew


    --- MagickaBBS v0.9alpha (Linux/x86_64)
    * Origin: Exotica BBS - telnet://exoticabbs.com:2023/ (21:1/125)
  • From apam@21:1/125 to apam on Mon Feb 5 11:32:21 2018
    apam said....

    You wont see any output though as it is redirected to the log file. If
    you want you could email me the log.

    And it would probably help if you had my email... apamment@yandex.com

    :)

    Andrew

    --- MagickaBBS v0.9alpha (Linux/x86_64)
    * Origin: Exotica BBS - telnet://exoticabbs.com:2023/ (21:1/125)
  • From Dumas Walker@21:1/175 to APAM on Mon Feb 5 18:29:00 2018
    However, I have not had luck with 'make www' or 'make'. make www fails immediately (sorry, the error has scrolled off), and a simple make runs

    make www would have failed if you don't have libmicrohttpd-dev installed.

    That sounds familiar. :)

    cd ../deps/cdk-5.0-20161210/ && ./configure /bin/sh: 1: ./configure: Permission denied

    This is a mystery. What happens if you go into deps/cdk-5.0-20161210 and
    type ./configure manually?

    I shall have to try that. I was afraid to at the time because I would not
    know what step was next, if it should happen to work.

    Are you compiling with the same user that checked out the source? are you able to run /bin/sh ?

    Yes, I am and, yes, I can. :)

    If you want to get a log of everything, you should be able to do
    something like this:
    make > logfile.txt 2>&1
    You wont see any output though as it is redirected to the log file. If
    you want you could email me the log.

    I will try that but, before I do, there may be something important I forgot
    to mention. Because the pi has limited disk space compared to my other machines, I was installing Magicka to an NFS share that is under my home directory. While the user has r/w/x to everything on the share, I wondered later if it being on a share might cause issues during a compile?

    ---
    þ SLMR 2.1a þ Hey, how 'bout a fandango ?!?
    * Origin: CCO BBS - capitolcityonline.net:26 (21:1/175)
  • From apam@21:1/125 to Dumas Walker on Tue Feb 6 12:22:25 2018
    I will try that but, before I do, there may be something important I forgot to mention. Because the pi has limited disk space compared to my other machines, I was installing Magicka to an NFS share that is under my home directory. While the user has r/w/x to everything on the share, I wondered later if it being on a share might cause issues during a
    compile?

    I wouldn't have thought it would be a problem, but as it's the only thing different to my raspberry pi setup, I suspect it is.

    I'll do some research and see if any other projects have had issues
    running configure scripts on NFS. Perhaps there is an option that needs
    to be passed to mount or something.

    Andrew


    --- MagickaBBS v0.9alpha (Linux/x86_64)
    * Origin: Exotica BBS - telnet://exoticabbs.com:2023/ (21:1/125)
  • From Dumas Walker@21:1/175 to Apam on Mon Feb 5 19:38:19 2018
    Me to you, earlier this evening:


    I will try that but, before I do, there may be something important I forgot to mention. Because the pi has limited disk space compared to my other machines, I was installing Magicka to an NFS share that is under my home directory. While the user has r/w/x to everything on the share, I wondered later if it being on a share might cause issues during a compile?

    That actually was it. It is working now. :) I may try in future to move the installation to the NFS share but, for now, I guess it is fine running from a thumb drive. :)

    capitolcityonline.net:7636
    --- SBBSecho 3.03-Linux
    * Origin: CCO BBS - capitolcityonline.net:26 (21:1/175)
  • From apam@21:1/125 to Dumas Walker on Wed Feb 7 07:12:26 2018
    That actually was it. It is working now. :) I may try in future to
    move the installation to the NFS share but, for now, I guess it is fine running from a thumb drive. :)

    Glad you got it figured out, though why it wasn't working on the NFS
    share is a bit of a mystery.

    Andrew


    --- MagickaBBS v0.9alpha (Linux/x86_64)
    * Origin: Exotica BBS - telnet://exoticabbs.com:2023/ (21:1/125)
  • From Dumas Walker@21:1/175 to APAM on Tue Feb 6 19:02:00 2018
    I'll do some research and see if any other projects have had issues
    running configure scripts on NFS. Perhaps there is an option that needs
    to be passed to mount or something.

    Maybe. For reference, it is mounted in fstab using the following options:

    rw,user,rsize=8192,wsize=8192,hard,intr

    It is mounted to a directory under the user's home directory.

    ---
    þ SLMR 2.1a þ Overhead the albatross hangs motionless upon the air...
    * Origin: CCO BBS - capitolcityonline.net:26 (21:1/175)
  • From apam@21:1/125 to Dumas Walker on Wed Feb 7 14:12:03 2018
    Maybe. For reference, it is mounted in fstab using the following
    options:

    rw,user,rsize=8192,wsize=8192,hard,intr

    Thanks, I've opened an issue on github and will look into it soonish.

    https://github.com/MagickaBBS/MagickaBBS/issues/17

    It's there if you think of anything you want to add to it, it will
    probably be a few days before I get into it.

    Andrew


    --- MagickaBBS v0.9alpha (Linux/x86_64)
    * Origin: Exotica BBS - telnet://exoticabbs.com:2023/ (21:1/125)
  • From Mike Powell@21:1/175.3 to Apam on Thu Feb 8 18:46:00 2018
    rw,user,rsize=8192,wsize=8192,hard,intr
    Thanks, I've opened an issue on github and will look into it soonish. https://github.com/MagickaBBS/MagickaBBS/issues/17
    It's there if you think of anything you want to add to it, it will
    probably be a few days before I get into it.

    OK, thanks for the link! :) I should be able to test out an NFS compile again, once you think it is ready.

    ---
    * SLMR 2.1a * Her voice rings in his ears like the music of the spheres
    * PDQWK 2.52 #17


    --- GTMail 1.26
    * Origin: moe's * 1-502-875-8938 * moetiki.ddns.net:27 (21:1/175.3)