HEY
I'm remaking witches.academy, and I'm stuck at bundle exec rake secret.
It's super not working and I'm stuck >.>
My error says package configuration for protobuf is not found
Also, this keeps popping up?
An error occurred while installing cld3 (3.1.2), and Bundler cannot
continue.
Make sure that `gem install cld3 -v '3.1.2'` succeeds before bundling.
@spiderrobotpig Using Nanobox, or ...?
@sendoshin Apparently I could just do a native install in Digital Ocean and my account is still good so I did it there.
Currently working from this: https://anystack.xyz/how-to-install-mastodon-ubuntu/
@spiderrobotpig Yeah, it was added as a dependency when language detection was upgraded a few versions back. Took me a while to figure everything out to make that work properly so that Nanobox could handle it automatically.
So the first step is you have to actually install protobuf using the system package manager. Assuming Ubuntu, `sudo apt-get install protobuf-compiler` should pull in everything you need.
@sendoshin It says that package config isn't found, but that the package is installed.
Bluh I forget how frustrating this can get >.<
@spiderrobotpig Yeah, it's pretty much a nightmare managing Ruby dependencies, especially if there are any binaries involved.
So, basically it's trying to build its own version of a library called CLD3, which is the language detection library used in Chrome. It has to build its own because the normal version depends on Chrome itself, and that's just way too much for most uses.
But. It needs help to find the other things it still depends on...
@sendoshin Makes sense. No idea how to fix it though?
Because I've installed the package and the dependencies both with root and the mastodon user and for some reason bundle install can't find them
@spiderrobotpig It's honestly been nearly two months since I tackled this myself, so ... I'm trying to remember all the details... Sorry for the delays.
@sendoshin No worries. I appreciate the help.
If it's too much I'm sure I can figure it out at some point
@spiderrobotpig So, for some reason it's having trouble finding one of the libraries it needs. I'm trying to remember which ones it depends on, other than protobuf. Because there was at least one it didn't actually have a way to detect and warn about in the build process itself...
I wanna say it's zlib? `sudo apt-get install zlib1g`? I mean, that's usually already installed, but I guess you never know...
@sendoshin Yeah it's already there.
Bluuuuuuuuuuh
I guess I'll just wait until I can get $10 up and use nanobox this is bullshit
@spiderrobotpig I can zap you the $10 if you like... I think you get like 20 days free, though, so ... up to you.
@sendoshin Oh yeah, you're right.
KK I'm gonna do that how awful is this gonna be?
@spiderrobotpig Not awful at all, in my experience. I documented the process in the official docs, but I have a much more detailed walkthrough on the Nanobox blog that I highly recommend, especially for the bits about managing it once it's up.
@sendoshin Link plz? haha
@sendoshin Oh god this looks so much more complicated >^<
@spiderrobotpig Skip the bit about what I did to make it work. It's a lot less intimidating than you think.
@spiderrobotpig Ah, whoops. You can just re-use those values from when you set it up the first time. You'll want to import your database contents anyway, if they're still around, so there will be an extra step or two not in that doc.
Alternately, if you're starting over from nothing completely, you can just clone the Mastodon repo on your computer and run it in that directory. All Nanobox commands are meant to be run in the root folder of your project.
@sendoshin I'm so confused now >.<
@spiderrobotpig Sorry. The values you're setting in the dashboard are the same values you would have set in the .env file manually. So you can take the values from your existing .env file on DO and just use them, here.
@sendoshin I honestly have no idea what you're asking me to do now tbh
Like, I don't understand how this is supposed to work at all apparently.
@spiderrobotpig Hrm. How to reword...
So, you already have a Mastodon instance running on DO, right?
@sendoshin No, that's the problem. I can't get it running because that awful fucking update
@spiderrobotpig OK, not running, then. Installed? It sounded like it was at least running at one point...
@sendoshin It was at some point, but it's not now. The droplet got deleted
@spiderrobotpig Ah. OK. So you have to regenerate the secrets. Gotcha.
In that case. What OS are you running on your computer?
@sendoshin I'm on windows rn
@spiderrobotpig Alright, do you use git there much?
@sendoshin A little bit? I'm using the app at the moment, and I have a program where I can SSH into the droplets
@spiderrobotpig OK, cool. We don't need to access the droplets at all, really.
So we're gonna need to clone the Mastodon repo from GitHub onto your computer. Not sure which app you use for that, but it should work fine with https://github.com/tootsuite/mastodon as the origin URL.
@spiderrobotpig (Argh. Masto "helpfully" dropped the https part...)
@sendoshin I already have a Mastondon repo on here
@spiderrobotpig Oh, even better. Forget I said anything about cloning it. :D
@sendoshin Oki. Copying over the variables from the old .env.production at the moment
@sendoshin Okay, done with that part