File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 74
74
'ffi' ,
75
75
'libddwaf' ,
76
76
'msgpack' ,
77
- 'libdatadog' , # libdatadog MUST be installed before datadog
77
+ 'libdatadog' , # libdatadog MUST be installed before datadog to ensure libdatadog native extension is compiled
78
78
'datadog' ,
79
79
] . each do |gem |
80
80
version = gem_version_mapping . delete ( gem )
108
108
109
109
raise "#{ gem_version_mapping . keys . join ( ',' ) } are not installed." if gem_version_mapping . any?
110
110
111
+ datadog_gem_path = versioned_path . join ( "gems/datadog-#{ ENV . fetch ( 'RUBY_PACKAGE_VERSION' ) } " )
112
+ libdatadog_so_file = "libdatadog_api.#{ RUBY_VERSION [ /\d +.\d +/ ] } _#{ RUBY_PLATFORM } .so"
113
+ unless File . exist? ( "#{ datadog_gem_path } /lib/#{ libdatadog_so_file } " )
114
+ raise "Missing #{ libdatadog_so_file } in #{ datadog_gem_path } ."
115
+ end
116
+
111
117
FileUtils . cd ( versioned_path . join ( "extensions/#{ Gem ::Platform . local } " ) , verbose : true ) do
112
118
# Symlink those directories to be utilized by Ruby compiled with shared libraries
113
119
FileUtils . ln_sf Gem . extension_api_version , ruby_api_version
You can’t perform that action at this time.
0 commit comments