Re: ERROR: curve_fit not defined

271 views
Skip to first unread message
Message has been deleted

Kristoffer Carlsson

unread,
Sep 20, 2015, 2:17:26 PM9/20/15
to julia-users
https://github.com/JuliaOpt/Optim.jl/pull/70

https://github.com/pjabardo/CurveFit.jl

On Sunday, September 20, 2015 at 7:46:53 PM UTC+2, testertester wrote:
I am on Ubuntu, and my copy of julia was installed with apt-get install julia.

I was trying the curve fitting tutorial found here (http://www.walkingrandomly.com/?p=5181) but I kept getting the error "curve_fit not defined". Yes, I have done "Pkg.add("Optim")" and "Pkg.add("LsqFit")", that doesn't help. Apparently, nobody else on the internet has ever had this problem. I'm surprised.

Also, it doesn't seem like I can find the version number of Julia that I'm using. Following this (http://stackoverflow.com/questions/25326890/how-to-find-version-number-of-julia-is-there-a-ver-command) just gives me the error "verbose not defined". Is every piece of documentation about Julia from earlier than 6/2015 invalid now? The responses I found here are pretty useless, as curve_fit doesn't even work by itself.
Message has been deleted

Tony Kelman

unread,
Sep 20, 2015, 2:54:55 PM9/20/15
to julia-users
Call the function versioninfo(), or enter the constant VERSION

Depending on what version of Ubuntu you're using, the Julia that you installed from apt-get is probably quite out of date. It's better to use the more recent tarball releases available from www.julialang.org/downloads.
Message has been deleted
Message has been deleted

Pontus Stenetorp

unread,
Sep 21, 2015, 4:11:37 AM9/21/15
to julia...@googlegroups.com
On 21 September 2015 at 08:30, testertester <paulj....@gmail.com> wrote:
>
> YAK ALERT: ABANDON SHI(T)P
> I'll try installing it on Windows tomorrow. Every attempt at installing
> 0.3.11 on ubuntu failed no matter how many dependencies I installed. Also,
> the link to download the .debs no workey. Not at all surprised.

Try the advice that Tony gave you, use the tarballs.

JLTAR=https://julialang.s3.amazonaws.com/bin/linux/x86/0.3/julia-0.3.11-linux-i686.tar.gz
mkdir julia && wget -O - "${JLTAR}" | tar -C julia \
--strip-components=1 -x -z -f - && julia/bin/julia

As for guides on Stack Overflow and personal home pages, it is
difficult for it to be in sync with a fast moving target that still
has not had a 1.0 release. For up-to-date documentation, please see
the official homepage [1].

Pontus

[1]: http://docs.julialang.org/en/release-0.3/
Reply all
Reply to author
Forward
0 new messages