Help installing curl or using it through a jail

Status
Not open for further replies.

pcloadetter

Explorer
Joined
Aug 15, 2015
Messages
65
I have a shell script I wrote which calls curl. I have curl installed in a jail, but I wanted to install it on the FN OS. (my script isnt related to anything jailed)

I attempt to install curl
[root@xxx~]# pkg install curl-7.38.0_1

which ends up with
pkg: archive_read_open_filename(/usr/ports/packages/All/gcc-ecj-4.5.txz): Failed to open '/usr/ports/packages/All/gcc-ecj-4.5.txz'

I tried to install
pkg install gcc-ec
with the same result

I tried to call it from a jail
/mnt/xxxx/jails/sabnzbd_1/usr/local/bin/curl
and got the message
Shared object "libcurl.so.4" not found, required by "curl"


Any suggestions how I can use curl other than from within the existing jail
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
It's a very bad idea to modify the base OS. Just use your script in a jail ;)
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Do not install any packages in the base OS. FreeNAS is designed as an appliance and you run a very strong chance of breaking by doing what you are trying to do.

Keep software installs to the jails or a virtualbox VM, that's what they're there for.
 
Last edited:

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
From FreeNAS:

Code:
[root@citadel] ~# curl --version
curl 7.38.0 (amd64-portbld-freebsd9.3) libcurl/7.38.0 OpenSSL/0.9.8zd zlib/1.2.8
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile GSS-API SPNEGO NTLM NTLM_WB SSL libz
[root@citadel] ~#


From a jail:
Code:
root@downloads:/ # curl --version
curl 7.45.0 (amd64-portbld-freebsd9.3) libcurl/7.45.0 OpenSSL/0.9.8z zlib/1.2.8
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz UnixSockets
root@downloads:/ # 


From another jail:
Code:
root@revproxy1:/ # curl --version
curl 7.45.0 (amd64-portbld-freebsd9.3) libcurl/7.45.0 OpenSSL/0.9.8z zlib/1.2.8
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz UnixSockets
root@revproxy1:/ # 



location of curl on FreeNAS:
Code:
[root@citadel] ~# which curl
/usr/local/bin/curl
 
Status
Not open for further replies.
Top