Can't run an example 'hello_world' with Questa 10.7d

I like to run an example ‘hello_world’ of the package uvm-1.2 in Questa -64 10.7d.
Unfortunately, it doesn’t work out of the box.

vlog hello_world.sv

QuestaSim-64 vlog 10.7d Compiler 2019.02 Feb 15 2019

Start time: 09:15:08 on Jul 21,2023

vlog -reportprogress 300 hello_world.sv

– Compiling module hello_world

– Importing package mtiUvm.uvm_pkg (uvm-1.1d Built-in)

** Note: (vlog-2286) hello_world.sv(26): Using implicit +incdir+/tools/modelsim/10.7d/questasim/uvm-1.1d/…/verilog_src/uvm-1.1d/src from import uvm_pkg

Top level modules:

hello_world

End time: 09:15:10 on Jul 21,2023, Elapsed time: 0:00:02

Errors: 0, Warnings: 0

vsim hello_world

vsim hello_world

Start time: 09:15:29 on Jul 21,2023

** Note: (vsim-3812) Design is being optimized…

** Error (suppressible): producer.sv(58): (vopt-7063) Failed to find ‘get_tr_stream’ in hierarchical name ‘get_tr_stream’.

Region: hello_world.producer.

** Error (suppressible): producer.sv(58): (vopt-7063) Failed to find ‘get_tr_stream’ in hierarchical name ‘get_tr_stream’.

Region: hello_world.producer.

Optimization failed

Error loading design

End time: 09:15:30 on Jul 21,2023, Elapsed time: 0:00:01

Errors: 2, Warnings: 0

Would you let me know what I did wrong? - Thanks!

In reply to XuanTran:

Just I tried this example. It is working fine in my environment. Maybe your environment/setup is not complete.

In reply to chr_sue:

Thanks for your quick response.

Do you have any idea what’s missing in my setup environment?

I am new to UVM.

In reply to XuanTran:

I have this code put to EDAPlayground.
See here

In reply to chr_sue:

Thanks for spending time on this issue.

I found the problem.

By default, my machine uses uvm-1.1d to build files.

** Note: (vlog-2286) hello_world.sv(26): Using implicit +incdir+/tools/modelsim/2023.2/questasim/uvm-1.1d/…/verilog_src/uvm-1.1d/src from import uvm_pkg

I used an example ‘hello_world’ from uvm-1.2.
When having run an example ‘hello_world’ from uvm-1.1d, I didn’t get any errors.