Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- First, I followed the instructions included in the tar.gz, usually, this is enough to get it running...right?
- Apparently not.
- This is my second time trying to install this, and I've finally succeeded. Other people will have trouble compiling and installing, so here's how I did it:
- 1) I installed the missing curl library, as per compile error
- sudo apt-get install libcurl4-openssl-dev
- 2) I went into the src and edited the Makefile, because the compile instructions were actually wrong/malformed
- cd src
- vi Makefile
- a) I edited the compile instructions from this:
- CXXFLAGS=-Wall -Werror -O2
- $(CXX) $(CXXLIBS) $^ $(CXXFLAGS) -o $@
- $(CXX) $(CXXLIBS) -c $< $(CXXFLAGS) -o $@ -DENCODING_KEY=\"${ENC_KEY}\"
- $(CXX) $(CXXLIBS) -c $< $(CXXFLAGS) -o $@
- to this:
- CXXFLAGS=-Wall
- $(CXX) $^ $(CXXFLAGS) -o $@ $(CXXLIBS)
- $(CXX) -c $< $(CXXFLAGS) -o $@ -DENCODING_KEY=\"${ENC_KEY}\" $(CXXLIBS)
- $(CXX) -c $< $(CXXFLAGS) -o $@ $(CXXLIBS)
- See what I did? I moved the library links to the end of each line and removed the redundant -Werror, as well as the potentially error-prone -O2 optimizing flag
- 3) While there:
- make
- This time, it worked!
- I had a suspicion it was the g++ line when I noticed the link at the beginning, and if this hadn't worked, I would have given up. I was that close to total frustration.
- 4) I exited src and then installed
- cd ../
- sudo make install
- 5) I tested it out, and lo and behold, it worked
- pastebincl -g <enter>
- Hello World
- ^D
- saving to pastebin...
- In fact, this paste right here, was sent via pastebincl
- cat how_I_Compiled_this | pastebincl -n 'How I compiled pastebincl on linux'
- Bastian, if you're reading this, I'm letting you know right now that your Makefile is broken. -lxxxx flags are supposed to go at the end of a gcc command.
- -Braden Best a.k.a B1KMusic
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement