Open dbqls0472 opened 3 years ago
https://saint-swithins-day.tistory.com/44 젯봇..,,딥러닝..어쩌고
sudo apt autoremove sudo apt-get install rdate sudo rdate -s time.bora.net sudo apt-get update sudo apt-get upgrade sudo apt-get update
sudo apt-get install nvidia-jetpack sudo apt-get install libsdl1.2-dev sudo apt-get install v4l-utils
sudo apt-get install nano
sudo nano /etc/envirionment nano 들어가서 insert 모드로 바꾸고 /user 앞에 /usr/local/cuda/bin: 추가 줄 바꿔서 LD_LIBRARY_PATH="/usr/local/cuda/lib64/" 추가
echo 'source ~/turtlebot3_ws/install/setup.bash' >> ~/.bashrc echo 'export ROS_DOMAIN_ID=30 #TURTLEBOT3' >> ~/.bashrc source ~/.bashrc
#
#
#
# use strict; use warnings;
use Dpkg::Arch qw(debarch_to_gnutriplet); use Dpkg::ErrorHandling qw(error);
my $crosswrapper = "/usr/share/pkg-config-crosswrapper";
my $action = $ARGV[0]; error("parameter must be 'remove' or 'update'") unless defined $action && ($action eq "remove" || $action eq "update");
my $arch = dpkg --print-architecture
;
error('dpkg --print-architecture failed') if $? >> 8;
my @architectures = dpkg --print-foreign-architectures
;
error('dpkg --print-foreign-architectures failed') if $? >> 8;
push @architectures, $arch;
chomp @architectures;
my %gnutriplets = map { debarch_tognutriplet($) => 1 } @architectures;
my %symlinks = map { $_ => 1 } </usr/bin/*-pkg-config>;
foreach my $symlink (keys %symlinks) { $symlink =~ m,^/usr/bin/([^-]+-[^-]+-[^-]+)-pkg-config, or next; next if exists $gnutriplets{$1} && $action eq "update"; next unless -l $symlink; next unless readlink $symlink eq $crosswrapper; unlink $symlink or error("failed to remove symlink $symlink: $!"); }
if ($action eq 'update') { foreach (keys %gnutriplets) { my $linktarget = "/usr/bin/${_}-pkg-config"; next if exists $symlinks{$linktarget}; next if -e $linktarget; symlink $crosswrapper, $linktarget or error("failed to create symlink $linktarget to $crosswrapper: $!"); } }
https://m.blog.naver.com/sehan042175/221870191025