Difference between revisions of "User:DukeEgr93/SNIPR"

From PrattWiki
Jump to navigation Jump to search
Line 8: Line 8:
 
** Downloaded and opened with archive manager
 
** Downloaded and opened with archive manager
 
** Extracted to /home/ID
 
** Extracted to /home/ID
** Installed cmake with sudo apt install cmake
+
** Installed cmake with  
** Installed g++ with sudo apt install g++
+
sudo apt install cmake
** Change to nupack folder, make build, change to build,  
+
:* Installed g++ with  
 +
sudo apt install g++
 +
:* Change to nupack folder, make build, change to build,  
 
  sudo cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ ../
 
  sudo cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ ../
 
  sudo make
 
  sudo make
 
  sudo make install
 
  sudo make install
 
::Sooooo many warnings...
 
::Sooooo many warnings...
** Find most recent version of libstdc++
+
:* Find most recent version of libstdc++
 
  locate libstdc++
 
  locate libstdc++
 
:: If locate does not work, use  
 
:: If locate does not work, use  
 
  sudo apt install mlocate  
 
  sudo apt install mlocate  
 
:: first.  Find the one that is in /usr/lib/x86_64-linux-gnu
 
:: first.  Find the one that is in /usr/lib/x86_64-linux-gnu
** Add lines to bash profile and run it:
+
:* Add lines to bash profile and run it:
 
   pico ~/.bash_profile
 
   pico ~/.bash_profile
 
:: and add
 
:: and add

Revision as of 01:17, 23 February 2021

  • Installed VirtualBox 6.1.18 from [1] using all defaults
  • Created a machine in VirtualBox Manager using New; 4 GB Ram; 100 GB VDI drive fixed size for speed
  • Downloaded Ubuntu from Ubuntu and installed it
    • After installation, stop the machine and remove the optical ISO if need be
  • Used Firefox to connect to MATLAB and installed R2017a with "sudo ./install" to have access to folders; MATLAB and Simulink only
  • NUPACK
    • Registered
    • Downloaded and opened with archive manager
    • Extracted to /home/ID
    • Installed cmake with
sudo apt install cmake
  • Installed g++ with
sudo apt install g++
  • Change to nupack folder, make build, change to build,
sudo cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ ../
sudo make
sudo make install
Sooooo many warnings...
  • Find most recent version of libstdc++
locate libstdc++
If locate does not work, use
sudo apt install mlocate 
first. Find the one that is in /usr/lib/x86_64-linux-gnu
  • Add lines to bash profile and run it:
 pico ~/.bash_profile
and add
export NUPACKHOME=/home/mrg/nupack3.2.2
export PATH=$PATH":${NUPACKHOME}/bin"
export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28"
then
source ~/.bash_profile
Not sure if required since these live on /usr/local
  • Start MATLAB from terminal
cd /usr/local/MATLAB/R2017a/bin
./matlab &
  • Check to see if things are working
system('musltitubedesign')