More likely you just need to run Pkg.update(). For example, you can test with a "dummy" package repository:
$ mkdir /tmp/pkgs
$ JULIA_PKGDIR=/tmp/pkgs julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.5.0-rc3+49 (2016-09-08 05:47 UTC)
_/ |\__'_|_|_|\__'_| | Commit e1d2965* (2 days old release-0.5)
|__/ | x86_64-linux-gnu
julia> Pkg.init()
INFO: Initializing package repository /tmp/pkgs/v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
julia> Pkg.add("ProfileView")
INFO: Cloning cache of BinDeps from https://github.com/JuliaLang/BinDeps.jl.git
...
and the install & build succeeds.
Best,
--Tim
julia> ProfileView.view()
(<unknown>:770): GdkPixbuf-WARNING **: Cannot open pixbuf loader module file '/Users/ortner/.julia/v0.5/Homebrew/deps/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /Users/ortner/.julia/v0.5/Homebrew/deps/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
ERROR: UndefVarError: _jl_libcairo not defined
in #CairoImageSurface#1(::Bool, ::Function, ::Array{UInt32,2}, ::Int32) at /Users/ortner/.julia/v0.5/Cairo/src/Cairo.jl:183
in #viewprof#2(::Bool, ::Bool, ::Int64, ::Bool, ::Array{Any,1}, ::Function, ::Gtk.GtkCanvas, ::Array{Array{UInt64,1},1}, ::Array{UInt64,1}, ::Array{Int64,1}, ::Dict{UInt64,Array{StackFrame,1}}, ::Array{Array{StackFrame,1},1}) at /Users/ortner/.julia/v0.5/ProfileView/src/ProfileViewGtk.jl:48
in (::ProfileViewGtk.#kw##viewprof)(::Array{Any,1}, ::ProfileViewGtk.#viewprof, ::Gtk.GtkCanvas, ::Array{Array{UInt64,1},1}, ::Array{UInt64,1}, ::Array{Int64,1}, ::Dict{UInt64,Array{StackFrame,1}}, ::Array{Array{StackFrame,1},1}) at ./<missing>:0
in #view#1(::Void, ::Array{Any,1}, ::Function, ::Array{UInt64,1}) at /Users/ortner/.julia/v0.5/ProfileView/src/ProfileViewGtk.jl:40
in (::ProfileViewGtk.#kw##view)(::Array{Any,1}, ::ProfileViewGtk.#view, ::Array{UInt64,1}) at ./<missing>:0
in view() at /Users/ortner/.julia/v0.5/ProfileView/src/ProfileView.jl:55
shell> gdk-pixbuf-query-loaders > /Users/ortner/.julia/v0.5/Homebrew/deps/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
objc[3073]: Class GNotificationCenterDelegate is implemented in both /usr/local/opt/glib/lib/libgio-2.0.0.dylib and /Users/ortner/.julia/v0.5/Homebrew/deps/usr/opt/glib/lib/libgio-2.0.0.dylib. One of the two will be used. Which one is undefined.
julia>
julia> ProfileView.view()
ERROR: UndefVarError: _jl_libcairo not defined
in #CairoImageSurface#1(::Bool, ::Function, ::Array{UInt32,2}, ::Int32) at /Users/ortner/.julia/v0.5/Cairo/src/Cairo.jl:183
in #viewprof#2(::Bool, ::Bool, ::Int64, ::Bool, ::Array{Any,1}, ::Function, ::Gtk.GtkCanvas, ::Array{Array{UInt64,1},1}, ::Array{UInt64,1}, ::Array{Int64,1}, ::Dict{UInt64,Array{StackFrame,1}}, ::Array{Array{StackFrame,1},1}) at /Users/ortner/.julia/v0.5/ProfileView/src/ProfileViewGtk.jl:48
in (::ProfileViewGtk.#kw##viewprof)(::Array{Any,1}, ::ProfileViewGtk.#viewprof, ::Gtk.GtkCanvas, ::Array{Array{UInt64,1},1}, ::Array{UInt64,1}, ::Array{Int64,1}, ::Dict{UInt64,Array{StackFrame,1}}, ::Array{Array{StackFrame,1},1}) at ./<missing>:0
in #view#1(::Void, ::Array{Any,1}, ::Function, ::Array{UInt64,1}) at /Users/ortner/.julia/v0.5/ProfileView/src/ProfileViewGtk.jl:40
in (::ProfileViewGtk.#kw##view)(::Array{Any,1}, ::ProfileViewGtk.#view, ::Array{UInt64,1}) at ./<missing>:0
in view() at /Users/ortner/.julia/v0.5/ProfileView/src/ProfileView.jl:55
type Array has no field func
in (::ProfileView.#printrec#26{Dict{UInt64,Array{StackFrame,1}}})(::IOContext{Base.AbstractIOBuffer{Array{UInt8,1}}}, ::Int64, ::Float64, ::Float64, ::Float64, ::ProfileView.TagData, ::ColorTypes.RGB{FixedPointNumbers.UFixed{UInt8,8}}) at /Users/ortner/.julia/v0.5/ProfileView/src/ProfileView.jl:213
in show(::IOContext{Base.AbstractIOBuffer{Array{UInt8,1}}}, ::MIME{Symbol("image/svg+xml")}, ::ProfileView.ProfileData) at /Users/ortner/.julia/v0.5/ProfileView/src/ProfileView.jl:255
in verbose_show(::Base.AbstractIOBuffer{Array{UInt8,1}}, ::MIME{Symbol("image/svg+xml")}, ::ProfileView.ProfileData) at ./multimedia.jl:50
in #sprint#304(::Void, ::Function, ::Int64, ::Function, ::MIME{Symbol("image/svg+xml")}, ::Vararg{Any,N}) at ./strings/io.jl:37
in display_dict(::ProfileView.ProfileData) at /Users/ortner/.julia/v0.5/IJulia/src/execute_request.jl:28
in execute_request(::ZMQ.Socket, ::IJulia.Msg) at /Users/ortner/.julia/v0.5/IJulia/src/execute_request.jl:195
in eventloop(::ZMQ.Socket) at /Users/ortner/.julia/v0.5/IJulia/src/IJulia.jl:138
in (::IJulia.##25#31)() at ./task.jl:360
julia> @profile test(1_000_000_00);
julia> ProfileView.view()
Gtk.GtkWindowLeaf(name="", parent, width-request=-1, height-request=-1, visible=TRUE, sensitive=TRUE, app-paintable=FALSE, can-focus=FALSE, has-focus=FALSE, is-focus=FALSE, focus-on-click=TRUE, can-default=FALSE, has-default=FALSE, receives-default=FALSE, composite-child=FALSE, style, events=0, no-show-all=FALSE, has-tooltip=FALSE, tooltip-markup=NULL, tooltip-text=NULL, window, opacity=1.000000, double-buffered, halign=GTK_ALIGN_FILL, valign=GTK_ALIGN_FILL, margin-left, margin-right, margin-start=0, margin-end=0, margin-top=0, margin-bottom=0, margin=0, hexpand=FALSE, vexpand=FALSE, hexpand-set=FALSE, vexpand-set=FALSE, expand=FALSE, scale-factor=2, border-width=0, resize-mode, child, type=GTK_WINDOW_TOPLEVEL, title="Profile", role=NULL, resizable=TRUE, modal=FALSE, window-position=GTK_WIN_POS_NONE, default-width=-1, default-height=-1, destroy-with-parent=FALSE, hide-titlebar-when-maximized=FALSE, icon, icon-name=NULL, screen, type-hint=GDK_WINDOW_TYPE_HINT_NORMAL, skip-taskbar-hint=FALSE, skip-pager-hint=FALSE, urgency-hint=FALSE, accept-focus=TRUE, focus-on-map=TRUE, decorated=TRUE, deletable=TRUE, gravity=GDK_GRAVITY_NORTH_WEST, transient-for, attached-to, has-resize-grip, resize-grip-visible, application, is-active=FALSE, has-toplevel-focus=FALSE, startup-id, mnemonics-visible=FALSE, focus-visible=FALSE, is-maximized=FALSE)
julia>
(<unknown>:53358): Gtk-WARNING **: Error loading theme icon 'document-open' for stock: Icon 'document-open' not present in theme Adwaita
(<unknown>:53358): Gtk-WARNING **: Error loading theme icon 'document-save-as' for stock: Icon 'document-save-as' not present in theme Await
# and many more lines like that.
objc[49750]: Class GNotificationCenterDelegate is implemented in both /Users/ortner/.julia/v0.5/Homebrew/deps/usr/opt/glib/lib/libgio-2.0.0.dylib and /usr/local/opt/glib/lib/libgio-2.0.0.dylib. One of the two will be used. Which one is undefined.