Linux pbcurl error
- DoubleDutch
- Addict
- Posts: 3219
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
Linux pbcurl error
On linux I use an extra include to use more of libpbcurl. It works fine on Windows and MacOS but on Linux I get a strange linker error...
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
- NicTheQuick
- Addict
- Posts: 1227
- Joined: Sun Jun 22, 2003 7:43 pm
- Location: Germany, Saarbrücken
- Contact:
Re: Linux pbcurl error
Did you install the package libssl-dev?
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
- DoubleDutch
- Addict
- Posts: 3219
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
Re: Linux pbcurl error
No, but have done since.
Same error.
Same error.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
- NicTheQuick
- Addict
- Posts: 1227
- Joined: Sun Jun 22, 2003 7:43 pm
- Location: Germany, Saarbrücken
- Contact:
Re: Linux pbcurl error
Can you show me the extra include? I assume there is an error in some Import statements.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
- DoubleDutch
- Addict
- Posts: 3219
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
Re: Linux pbcurl error
Here you are:
https://www.dropbox.com/s/9qf2ktiantkxm ... 2.pbi?dl=0
https://www.dropbox.com/s/9qf2ktiantkxm ... 2.pbi?dl=0
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
- NicTheQuick
- Addict
- Posts: 1227
- Joined: Sun Jun 22, 2003 7:43 pm
- Location: Germany, Saarbrücken
- Contact:
Re: Linux pbcurl error
It seems you need to modify the ImportC line to link the needed libraries:
However. I still get this error:
Did you try this?
Code: Select all
ImportC "-lpbcurl -lssl -lcrypt"
After some more compiling around it seems to be enough to simply write this line:/usr/bin/ld: /home/nicolas/programme/purebasic/purelibraries/linux/libraries/libpbcurl.a(openssl.o): undefined reference to symbol 'BN_num_bits@@OPENSSL_1_1_0'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1: error adding symbols: DSO aus der Kommandozeile fehlt
collect2: error: ld returned 1 exit status
Code: Select all
ImportC "-lcurl"
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
- DoubleDutch
- Addict
- Posts: 3219
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
Re: Linux pbcurl error
I get
/usr/bin/ld: cannot find -lcurl
collect2: error: ld returned 1 exist status
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
- NicTheQuick
- Addict
- Posts: 1227
- Joined: Sun Jun 22, 2003 7:43 pm
- Location: Germany, Saarbrücken
- Contact:
Re: Linux pbcurl error
Did you install the libcurl package?
Maybe you also need libcurl4-gnutls-dev.
Code: Select all
sudo apt install libcurl4
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
- DoubleDutch
- Addict
- Posts: 3219
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
Re: Linux pbcurl error
I thought it installed with sudo apt-get install curl, will try that...
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
- DoubleDutch
- Addict
- Posts: 3219
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
Re: Linux pbcurl error
Already installed.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
- DoubleDutch
- Addict
- Posts: 3219
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
Re: Linux pbcurl error
What worked was sudo apt-get install libcurl4-openssl-dev
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
- DoubleDutch
- Addict
- Posts: 3219
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
Re: Linux pbcurl error
@NicTheQuick Thanks for your help with this.
@fred, not sure if this is a bug or not anymore - the other versions of purebasic (windows , osx) both accept libpbcurl...
@fred, not sure if this is a bug or not anymore - the other versions of purebasic (windows , osx) both accept libpbcurl...
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system